home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / util / libs / zee_inilib.lha / ini_library / AutoDoc / ini.doc
Encoding:
Text File  |  1999-03-27  |  90.6 KB  |  3,532 lines

  1. TABLE OF CONTENTS
  2. 0001 ini.library/--background--
  3. 0002 ini.library/iniAddContext
  4. 0003 ini.library/iniAddContextItem
  5. 0004 ini.library/iniAllocNameStr
  6. 0005 ini.library/iniAllocPMem
  7. 0006 ini.library/iniCheckComment
  8. 0007 ini.library/iniClose
  9. 0008 ini.library/iniCreateContext
  10. 0009 ini.library/iniCreateContextItem
  11. 0010 ini.library/iniDeleteContext
  12. 0011 ini.library/iniDeleteContextItem
  13. 0012 ini.library/iniFloatToStr
  14. 0013 ini.library/iniFreeContext
  15. 0014 ini.library/iniFreeContextItem
  16. 0015 ini.library/iniFreeNameStr
  17. 0016 ini.library/iniFreePMem
  18. 0017 ini.library/iniGetArrayLine
  19. 0018 ini.library/iniGetArrayPos
  20. 0019 ini.library/iniGetByteA
  21. 0020 ini.library/iniGetContextItem
  22. 0021 ini.library/iniGetContextItemData
  23. 0022 ini.library/iniGetContextItemDataA
  24. 0023 ini.library/iniGetContextName
  25. 0024 ini.library/iniGetFloat
  26. 0025 ini.library/iniGetFloatA
  27. 0026 ini.library/iniGetLong
  28. 0027 ini.library/iniGetLongA
  29. 0028 ini.library/iniGetNumArrays
  30. 0029 ini.library/iniGetStr
  31. 0030 ini.library/iniGetStrA
  32. 0031 ini.library/iniGetWordA
  33. 0032 ini.library/iniInsertContext
  34. 0033 ini.library/iniInsertContextItem
  35. 0034 ini.library/iniIntToStr
  36. 0035 ini.library/iniOpenDefault
  37. 0036 ini.library/iniOpenFile
  38. 0037 ini.library/iniOpenFromFH
  39. 0038 ini.library/iniOpenMem
  40. 0039 ini.library/iniPutByteA
  41. 0040 ini.library/iniPutFloat
  42. 0041 ini.library/iniPutFloatA
  43. 0042 ini.library/iniPutLong
  44. 0043 ini.library/iniPutLongA
  45. 0044 ini.library/iniPutStr
  46. 0045 ini.library/iniPutStrA
  47. 0046 ini.library/iniPutWordA
  48. 0047 ini.library/iniReadByteA
  49. 0048 ini.library/iniReadFloat
  50. 0049 ini.library/iniReadFloatA
  51. 0050 ini.library/iniReadLong
  52. 0051 ini.library/iniReadLongA
  53. 0052 ini.library/iniReadStr
  54. 0053 ini.library/iniReadStrA
  55. 0054 ini.library/iniReadWordA
  56. 0055 ini.library/iniRemContext
  57. 0056 ini.library/iniRemContextItem
  58. 0057 ini.library/iniSaveFile
  59. 0058 ini.library/iniSaveToFH
  60. 0059 ini.library/iniSetNameStr
  61. 0060 ini.library/iniSetString
  62. 0061 ini.library/iniStrToFloat
  63. 0062 ini.library/iniStrToInt
  64. 0063 ini.library/iniWriteByteA
  65. 0064 ini.library/iniWriteFloat
  66. 0065 ini.library/iniWriteFloatA
  67. 0066 ini.library/iniWriteLong
  68. 0067 ini.library/iniWriteLongA
  69. 0068 ini.library/iniWriteStr
  70. 0069 ini.library/iniWriteStrA
  71. 0070 ini.library/iniWriteWordA
  72. ini.library/--background--
  73.  
  74. ini.library Copyright © 1999 Seasons. All rights reserved.
  75.  
  76. Programming by Sebastian "Basty" Vater <cdgs.basty@usa.net>
  77. Visit Seasons at http://listen.to/floydmon
  78.  
  79. Freeware  -  please  read the disclaimer in the "ini.guide" supplied
  80. with this archive.
  81.  
  82. This  document describes ini.library v31.0 or higher.  Do not assume
  83. that previous library releases support the same features.
  84.  
  85. PURPOSE
  86.  
  87.        The 'ini.library' was created because there was no easy way of
  88.        handling configuration files. Each program had it's own format.
  89.  
  90.        This library tries to help you in making a standard file format for
  91.        configuration files. These files are in plain ASCII, so you can use
  92.        your favourite text editor to edit them, and, in addition, of course,
  93.        you can use the prefs section of your program.
  94.  
  95.  
  96. OVERVIEW
  97.  
  98.        The initialization files (ini files) are built up as follows:
  99.  
  100.        [Context1]
  101.          Item1 = Long1
  102.          Item2 = Long2
  103.          Item3 = LongA1, LongA2, LongA3,
  104.                  LongA4, LongA5, LongA6,
  105.          Item4 = Float1
  106.          Item5 = String1
  107.  
  108.        [Context2]
  109.          Item1 = Float1
  110.        ...
  111.  
  112.        * Easy accessible
  113.  
  114.        The library makes it easy to read/write access those context/item
  115.        fields. You can easily add/remove new items, contexts, etc.
  116.  
  117.        * Comments, etc. are all handled and preserved automatically!
  118.  
  119.        Yes, if you update a context item, the comment after the line
  120.        is preserved. That means, if you update the ini file in a program,
  121.        you don't need to worry about losing anything.
  122.  
  123.        * Both high- and low-level access functions
  124.   
  125.        You can choose between simply access and complex access. Low level
  126.        functions are for complex access, high level functions are for quick
  127.        and easy access. But the high level functions are a little slower.
  128.  
  129.        Enjoy the power and ease of ini.library!
  130.  
  131. ini.library/iniAddContext
  132.  
  133. NAME
  134.        iniAddContext -- adds a new freshly allocated context to an INI file
  135.                         structure
  136.  
  137.  
  138. SYNOPSIS
  139.        iniAddContext( iniFile, ContextStr );
  140.                       A0       A1
  141.  
  142.        void iniAddContext( struct iniFile *, struct ContextStr *);
  143.  
  144.  
  145. FUNCTION
  146.        Adds a freshly created context to a specified INI file.
  147.        To add items, you first need to add context items, see there.
  148.  
  149.  
  150. INPUTS
  151.        iniFile - Pointer to INI structure where to add it
  152.        ContextStr - Freshly context structure to add
  153.  
  154.  
  155. EXAMPLE
  156.  
  157.  
  158. NOTES
  159.        You need to call this function to make a *NEW* context available
  160.        to the other functions.
  161.  
  162.  
  163. BUGS
  164.  
  165.  
  166. SEE ALSO
  167.        iniCreateContext(), iniFreeContext(), iniRemContext(),
  168.        iniInsertContext(), iniDeleteContext(), <libraries/ini_lib.h>
  169.  
  170.  
  171. ini.library/iniAddContextItem
  172.  
  173. NAME
  174.        iniAddContextItem -- adds a new freshly allocated context item to
  175.                             an context structure
  176.  
  177.  
  178. SYNOPSIS
  179.        iniAddContextItem( ContextStr, ContextItemLine );
  180.                           A0          A1
  181.  
  182.        void iniAddContextItem( struct ContextStr *,
  183.            struct ContextItemLine *);
  184.  
  185.  
  186. FUNCTION
  187.        Adds a freshly created context item to a specified context.
  188.  
  189.  
  190. INPUTS
  191.        ContextStr - Pointer to context structure where to add it
  192.        ContextItemLine - Freshly context item structure to add
  193.  
  194.  
  195. EXAMPLE
  196.  
  197.  
  198. NOTES
  199.        You need to call this function to make a *NEW* context item available
  200.        to the other functions.
  201.  
  202.  
  203. BUGS
  204.  
  205.  
  206. SEE ALSO
  207.        iniCreateContextItem(), iniFreeContextItem(), iniRemContextItem(),
  208.        iniInsertContextItem(), iniDeleteContextItem(), <libraries/ini_lib.h>
  209.  
  210.  
  211. ini.library/iniAllocNameStr
  212.  
  213. NAME
  214.        iniAllocNameStr -- allocate a name string compatible with the library
  215.  
  216.  
  217. SYNOPSIS
  218.        namestring = iniAllocNameStr( string );
  219.        D0                            A0
  220.  
  221.        APTR iniAllocNameStr( char string *);
  222.  
  223.  
  224. FUNCTION
  225.        Allocates a name string out of a standard C-String. This is required
  226.        if you use own strings in the library handlers.
  227.  
  228.  
  229. INPUTS
  230.        string - The string to be allocated. Must be null terminated.
  231.  
  232.  
  233. RESULT
  234.        namestring - The initialized name structure. To deallocate, use
  235.            iniFreeNameStr() on this result.
  236.  
  237.  
  238. EXAMPLE
  239.  
  240.  
  241. NOTES
  242.        The namestring is a copy of string, but it's freed via iniFreePMem()
  243.  
  244.  
  245. BUGS
  246.  
  247.  
  248. SEE ALSO
  249.       iniFreeNameStr(), iniSetNameStr(), iniSetString()
  250.  
  251.  
  252. ini.library/iniAllocPMem
  253.  
  254. NAME
  255.        iniAllocPMem -- allocate MEMF_PUBLIC|MEMF_CLEAR memory like AllocMem()
  256.                        but use memory pools if running under OS3.0+
  257.  
  258.  
  259. SYNOPSIS
  260.        memoryBlock = iniAllocPMem( byteSize );
  261.        D0                          D0
  262.  
  263.        APTR iniAllocPMem( ULONG );
  264.  
  265.  
  266. FUNCTION
  267.        Allocates memory always with MEMF_PUBLIC and MEMF_CLEAR flags set and
  268.        uses, if possible, the OS3.0+ memory pools. I have decided to
  269.        implement this function, because the INI library allocates often
  270.        very small chunks of memory, which is handled more efficiency with
  271.        memory pools.
  272.  
  273.        Each memory pool has a size of 32768 bytes and a threshold of
  274.        4096 bytes.
  275.  
  276.  
  277. INPUTS
  278.        byteSize - number of bytes to allocate. Alignment rules are the
  279.            same as in exec.library/AllocMem() and exec.library/AllocPooled()
  280.  
  281.  
  282. RESULT
  283.        memoryBlock - FALSE if the user cancelled the requester or if something
  284.            prevented the requester from opening. If TRUE, values in the
  285.            requester structure will be set.
  286.  
  287.            If the return value is FALSE, you can look at the result from the
  288.            dos.library/IoErr() function to determine whether the requester
  289.            was cancelled or simply failed to open. If dos.library/IoErr()
  290.            returns 0, then the requester was cancelled, any other value
  291.            indicates a failure to open. Current possible failure codes are
  292.            ERROR_NO_FREE_STORE which indicates there was not enough memory,
  293.            and ERROR_NO_MORE_ENTRIES which indicates no modes were available
  294.            (usually because the application filter hook filtered them all
  295.            away).
  296.  
  297.  
  298. EXAMPLE
  299.  
  300.  
  301. NOTES
  302.        Please note that you MUST deallocate memory allocated with
  303.        iniAllocPMem() with iniFreePMem() or it *MAY* crash!
  304.  
  305.        iniAllocPMem() is used always for internal purposes, so that you
  306.        *MUST* allocate all structures used with this lib with this function.
  307.  
  308.  
  309. BUGS
  310.  
  311.  
  312. SEE ALSO
  313.       iniFreePMem()
  314.  
  315.  
  316. ini.library/iniCheckComment
  317.  
  318. NAME
  319.        iniCheckComment -- Checks if a context line belongs to a comment
  320.  
  321.  
  322. SYNOPSIS
  323.        success = iniCheckComment( ContextStr, ContextItemLine );
  324.        D0                         A0          A1
  325.  
  326.        BOOL iniCheckComment( struct ContextStr *, struct ContextItemLine *);
  327.  
  328.  
  329. FUNCTION
  330.        Checks if the given context item line is part of a multiline comment.
  331.        This function is mainly for internal use to easy handle the parsing
  332.        of lines.
  333.  
  334.  
  335. INPUTS
  336.        ContextStr - A pointer to context structure which contains the line
  337.            to be examined.
  338.        ContextItemLine - A pointer to the context item line which should be
  339.            examined.
  340.  
  341.  
  342. RESULT
  343.        success - TRUE if the line is commented else NULL.
  344.  
  345.  
  346. EXAMPLE
  347.  
  348.  
  349. NOTES
  350.  
  351.  
  352. BUGS
  353.  
  354.  
  355. SEE ALSO
  356. <libraries/ini_lib.h>
  357.  
  358.  
  359. ini.library/iniClose
  360.  
  361. NAME
  362.        iniClose -- Deallocate a loaded INI file
  363.  
  364.  
  365. SYNOPSIS
  366.        iniClose( iniFile );
  367.                  A0
  368.  
  369.        void iniClose( struct iniFile *);
  370.  
  371.  
  372. FUNCTION
  373.        This function is used to deallocate the memory required by the
  374.        the loaded INI file. It deallocates everything in the given INI
  375.        file structure.
  376.  
  377.  
  378. INPUTS
  379.        iniFile - A pointer to the INI file structure to be freed
  380.  
  381.  
  382. EXAMPLE
  383.  
  384.  
  385. NOTES
  386.        All memory blocks inside must be allocated using iniAllocPMem() or
  387.        iniAllocNameStr() or it may crash!
  388.  
  389.  
  390. BUGS
  391.  
  392.  
  393. SEE ALSO
  394.        iniOpenFile(), iniOpenFromFH(), iniOpenMem(), <libraries/ini_lib.h>
  395.  
  396.  
  397. ini.library/iniCreateContext
  398.  
  399. NAME
  400.        iniCreateContext -- Creates a new context chunk to be used
  401.  
  402.  
  403. SYNOPSIS
  404.        ContextStr = iniCreateContext( ContextName );
  405.        D0                             A0
  406.  
  407.        struct ContextStr *iniCreateContext( char ContextName *);
  408.  
  409.  
  410. FUNCTION
  411.        Creates a new context structure. It can be added with iniAddContext()
  412.        to an INI file structure. The name given mustn't be an AllocNameStr()
  413.        string. Because it's created automatically during the creation
  414.        process..
  415.  
  416.  
  417. INPUTS
  418.        ContextName - The line string of the context
  419.  
  420.  
  421. EXAMPLE
  422.  
  423.  
  424. NOTES
  425.        ContextName is not only the context name itself, but the full line,
  426.        e.g.:
  427.        [ Display ] and not only "Display".
  428.  
  429.  
  430. BUGS
  431.  
  432.  
  433. SEE ALSO
  434.        iniCreateContextItem(), iniFreeContext(), iniAddContext(),
  435.        iniInsertContext(), <libraries/ini_lib.h>
  436.  
  437.  
  438. ini.library/iniCreateContextItem
  439.  
  440. NAME
  441.        iniCreateContextItem -- creates a new context item to be used
  442.  
  443.  
  444. SYNOPSIS
  445.        ContextItemLine = iniCreateContextItem( CStr );
  446.        D0                                      A0
  447.  
  448.        struct ContextItemLine *iniCreateContextItem( char CStr *);
  449.  
  450.  
  451. FUNCTION
  452.        Creates a new context item line to be used. The string will be used
  453.        as a context line name. Add the result structure to the context
  454.        structure to make it available in the INI file structure.
  455.  
  456.  
  457. INPUTS
  458.        CStr - A null terminated string which will be stored as a
  459.            iniAllocNameStr() string.
  460.  
  461.  
  462. RESULT
  463.        ContextItemLine - The context item structure that can be added to
  464.            the desired context.
  465.  
  466.  
  467. EXAMPLE
  468.  
  469.  
  470. NOTES
  471.  
  472.  
  473. BUGS
  474.  
  475.  
  476. SEE ALSO
  477.       iniCreateContext(), iniFreeContextItem(), iniAddContextItem(),
  478.       iniInsertContextItem(), <libraries/ini_lib.h>
  479.  
  480.  
  481. ini.library/iniDeleteContext
  482.  
  483. NAME
  484.        iniDeleteContext -- deletes a context from an INI file structure
  485.  
  486.  
  487. SYNOPSIS
  488.        iniDeleteContext( ContextStr );
  489.                          A0
  490.  
  491.        void iniDeleteContext( struct ContextStr *);
  492.  
  493.  
  494. FUNCTION
  495.        Deletes a context of an INI file and all its associated lines.
  496.        Memory will not be freed. To deallocate, use iniFreeContext()
  497.  
  498.  
  499. INPUTS
  500.        ContextStr - The context structure to be deleted
  501.  
  502.  
  503. RESULT
  504.  
  505.  
  506. EXAMPLE
  507.  
  508.  
  509. NOTES
  510.        Please note that this function removes only the node from the
  511.        INI file structure and doesn't deallocate any memory.
  512.  
  513.  
  514. BUGS
  515.  
  516.  
  517. SEE ALSO
  518.       iniFreeContext(), iniRemContext(), iniInsertContext(),
  519.       <libraries/ini_lib.h>
  520.  
  521.  
  522. ini.library/iniDeleteContextItem
  523.  
  524. NAME
  525.        iniDeleteContextItem -- deletes a context item line from an INI file.
  526.  
  527.  
  528. SYNOPSIS
  529.        iniDeleteContextItem( ContextItemLine );
  530.                              A0
  531.  
  532.        void iniDeleteContextItem( struct ContextItemLine *);
  533.  
  534.  
  535. FUNCTION
  536.        Deletes a context item line from an INI context. It doesn't
  537.        deallocate any memory, so it can be added otherwise.
  538.  
  539.  
  540. INPUTS
  541.        ContextItemLine - The pointer of the context item line to be deleted.
  542.  
  543.  
  544. RESULT
  545.  
  546.  
  547. EXAMPLE
  548.  
  549.  
  550. NOTES
  551.        Please note that just the node is removed from the context structure
  552.        and there are no deallocation processes. Use iniFreeContextItem()
  553.        for this purpose.
  554.  
  555.  
  556. BUGS
  557.  
  558.  
  559. SEE ALSO
  560.        iniFreeContextItem(), iniRemContextItem(), iniInsertContextItem(),
  561.        <libraries/ini_lib.h>
  562.  
  563. ini.library/iniFloatToStr
  564.  
  565. NAME
  566.        iniFloatToStr -- Converts a quick float value to a string.
  567.  
  568.  
  569. SYNOPSIS
  570.        string = iniFloatToStr( Buffer, Float, FltFormat, IntLen, FracLen,
  571.        D0                      A0      D0     D1         D2      D3
  572.                                ZeroSep );
  573.                                D4:8
  574.  
  575.        APTR iniFloatToStr( APTR, ULONG, ULONG, ULONG, ULONG, UBYTE );
  576.  
  577.  
  578. FUNCTION
  579.        This function is used to convert a quick float value to a standard
  580.        ASCII string. A quick float value has in it's upper 16-bits the
  581.        decimal value and in the lower 16-bits the fraction. That means, the
  582.        highest possible accuracy is 1/65536.
  583.  
  584.  
  585. INPUTS
  586.        Buffer - A pointer to at least a 128 byte buffer or NULL to create a
  587.            new one.
  588.        Float - Quick float value to convert.
  589.        FltFormat - Format of the floating point value. Can be any of:
  590.            INI_FLOAT_FORMAT_DEC - Use decimal with point separator
  591.            INI_FLOAT_UNSIGNED - Add this to indicate unsigned quick float
  592.        IntLen - Forced length of integer part or NULL for no force.
  593.        FracLen - Forced length of fractional part or NULL for no force.
  594.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  595.  
  596.  
  597. RESULT
  598.        string - Pointer to the string where the converted string is stored.
  599.  
  600.  
  601. EXAMPLE
  602.  
  603.  
  604. NOTES
  605.  
  606.  
  607. BUGS
  608.       The buffer is not checked for overflow. That means, IntLen and FracLen
  609.       should not be greater than 90% of your buffer when added together.
  610.  
  611.  
  612. SEE ALSO
  613.       iniStrToFloat(), iniStrToInt(), iniIntToStr(), <libraries/ini_lib.h>
  614.  
  615.  
  616. ini.library/iniFreeContext
  617.  
  618. NAME
  619.        iniFreeContext -- Deletes if necessary and deallocates a context
  620.            structure.
  621.  
  622.  
  623. SYNOPSIS
  624.        iniFreeContext( ContextStr );
  625.                        A0
  626.  
  627.        void iniFreeContext( struct ContextStr *);
  628.  
  629.  
  630. FUNCTION
  631.        This function removes first (see iniDeleteContext()), if necessary a
  632.        context structure and then deallocates the memory used by it using
  633.        iniFreePMem() and iniFreeNameStr().
  634.  
  635.  
  636. INPUTS
  637.        ContextStr - A pointer to a context structure to be deallocated.
  638.  
  639.  
  640. RESULT
  641.  
  642.  
  643. EXAMPLE
  644.  
  645.  
  646. NOTES
  647.        The structure MUST be allocated with iniAllocPMem() and the strings
  648.        must be allocated with iniAllocNameStr()
  649.  
  650.  
  651. BUGS
  652.  
  653.  
  654. SEE ALSO
  655.        iniCreateContext(), iniRemContext(), iniDeleteContext(),
  656.        iniFreeContextItem(), <libraries/ini_lib.h>
  657.  
  658.  
  659. ini.library/iniFreeContextItem
  660.  
  661. NAME
  662.        iniFreeContextItem -- Deallocates a context item structure
  663.  
  664.  
  665. SYNOPSIS
  666.        iniFreeContextItem( ContextItemLine );
  667.                            A0
  668.  
  669.        void iniFreeContextItem( struct ContextItemLine *);
  670.  
  671.  
  672. FUNCTION
  673.        Removes (if necessary) a context item line and deallocates the memory
  674.        required by it afterwards. iniFreePMem() and iniFreeNameStr() are
  675.        used for deallocation.
  676.  
  677.  
  678. INPUTS
  679.        ContextItemLine - Pointer to the context item line to be deallocated.
  680.  
  681.  
  682. RESULT
  683.  
  684.  
  685. EXAMPLE
  686.  
  687.  
  688. NOTES
  689.        The structure MUST be allocated with iniAllocPMem() and the strings
  690.        need to be allocated with iniAllocNameStr().
  691.  
  692.  
  693. BUGS
  694.  
  695.  
  696. SEE ALSO
  697.       iniCreateContextItem(), iniRemContextItem(), iniDeleteContextItem(),
  698.       iniFreeContext(), <libraries/ini_lib.h>
  699.  
  700.  
  701. ini.library/iniFreeNameStr
  702.  
  703. NAME
  704.        iniFreeNameStr -- Deallocate an iniAllocNameStr() name structure.
  705.  
  706.  
  707. SYNOPSIS
  708.        iniFreeNameStr( namestring );
  709.                        A0
  710.  
  711.        void iniFreeNameStr( APTR );
  712.  
  713.  
  714. FUNCTION
  715.        Deallocates a name structure, allocated previously by
  716.        iniAllocNameStr()
  717.  
  718.  
  719. INPUTS
  720.        namestring - A pointer to a previously allocated name string. The
  721.            size of deallocation is calculated automatically.
  722.  
  723.  
  724. RESULT
  725.  
  726.  
  727. EXAMPLE
  728.  
  729.  
  730. NOTES
  731.        Please deallocate ONLY those things allocated with iniAllocNameStr()
  732.        with this function, since the allocation mechanism may change at any
  733.        time!
  734.  
  735.  
  736. BUGS
  737.  
  738.  
  739. SEE ALSO
  740.        iniAllocNameStr(), iniAllocPMem(), iniFreePMem()
  741.  
  742.  
  743. ini.library/iniFreePMem
  744.  
  745. NAME
  746.        iniFreePMem -- deallocates memory allocated by iniAllocPMem()
  747.  
  748.  
  749. SYNOPSIS
  750.        iniFreePMem( memoryBlock, byteSize)
  751.                     A1           D0
  752.  
  753.        void iniFreePMem( APTR, ULONG );
  754.  
  755.  
  756. FUNCTION
  757.        Deallocates any memory allocated by iniFreePMem(), it works just like
  758.        the exec.library/FreeMem function.
  759.  
  760.  
  761. INPUTS
  762.        memoryBlock - The block that should be deallocated
  763.        byteSize - Number of bytes to be deallocated. It is aligned
  764.            automatically.
  765.  
  766.  
  767. RESULT
  768.  
  769.  
  770. EXAMPLE
  771.  
  772.  
  773. NOTES
  774.        Please use this function to deallocate ONLY iniAllocPMem() blocks,
  775.        if you don't do this, the system may crash within OS3.0+, since the
  776.        function uses memory pools in that case.
  777.  
  778.  
  779. BUGS
  780.  
  781.  
  782. SEE ALSO
  783.        iniAllocPMem()
  784.  
  785.  
  786. ini.library/iniGetArrayLine
  787.  
  788. NAME
  789.        iniGetArrayLine -- Returns the array line of the context item number
  790.  
  791.  
  792. SYNOPSIS
  793.        ContextItemPos = iniGetArrayLine( ContextStr, ContextItemLine,
  794.        D0                                A0          A1
  795.                                          Number );
  796.                                          D0
  797.  
  798.        struct ContextItemLine *iniGetArrayLine( struct ContextStr *,
  799.                              struct ContextItemLine *, ULONG );
  800.  
  801.  
  802. FUNCTION
  803.        Gets the context item line structure of the given context item's nth
  804.        array (nth is the Number given in D0)
  805.  
  806.  
  807. INPUTS
  808.        ContextStr - Context structure where context item is
  809.        ContextItemLine - Context item line where's array's first entry.
  810.        Number - Array number of which the line address should be returned.
  811.  
  812.  
  813. RESULT
  814.        ContextItemLine - Context item line address of the number given.
  815.  
  816.  
  817. EXAMPLE
  818.  
  819.  
  820. NOTES
  821.        This function is mainly only for internal purposes. It allows
  822.        array handling faster.
  823.  
  824.  
  825. BUGS
  826.  
  827.  
  828. SEE ALSO
  829.        iniGetNumArrays(), iniGetArrayPos(), <libraries/ini_lib.h>
  830.  
  831.  
  832. ini.library/iniGetArrayPos
  833.  
  834. NAME
  835.        iniGetArrayPos -- Returns the position of the context item number.
  836.  
  837.  
  838. SYNOPSIS
  839.        ContextItemPos = iniGetArrayPos( ContextStr, ContextItemLine,
  840.        D0                               A0          A1
  841.                                         Number );
  842.                                         D0
  843.  
  844.        struct ContextItemLine *iniGetArrayPos( struct ContextStr *,
  845.                              struct ContextItemLine *, ULONG );
  846.  
  847.  
  848. FUNCTION
  849.        Gets the line position of the given context item's nth array
  850.        (nth is the Number given in D0)
  851.  
  852.  
  853. INPUTS
  854.        ContextStr - Context structure where context item is
  855.        ContextItemLine - Context item line where's array's first entry.
  856.        Number - Array number of which the line position should be returned.
  857.  
  858.  
  859. RESULT
  860.        ContextItemLine - Context item line address of the number given.
  861.  
  862.  
  863. EXAMPLE
  864.  
  865.  
  866. NOTES
  867.        This function is mainly only for internal purposes. It allows
  868.        easy array access.
  869.  
  870.  
  871. BUGS
  872.  
  873.  
  874. SEE ALSO
  875.        iniGetNumArrays(), iniGetArrayLine(), <libraries/ini_lib.h>
  876.  
  877.  
  878. ini.library/iniGetByteA
  879.  
  880. NAME
  881.        iniGetByteA -- reads a context item array into a (U)BYTE array.
  882.  
  883.  
  884. SYNOPSIS
  885.        success = iniGetByteA( ContextStr, ContextItemLine, Array, Entries );
  886.        D0                     A0          A1               A2     D0
  887.  
  888.        BOOL iniGetByteA( struct ContextStr *, struct ContextItemLine *,
  889.            struct Array *, ULONG );
  890.  
  891.  
  892. FUNCTION
  893.        Reads a context item array and stores the read bytes into a
  894.        (U)BYTE table you specified.
  895.  
  896.  
  897. INPUTS
  898.        ContextStr - The context structure where the context line is in
  899.        ContextItemLine - The context item line where the array is
  900.        Array - An (U)BYTE array where to store the values
  901.        Entries - Number of entries to read (further entries will be ignored)
  902.  
  903.  
  904. RESULT
  905.        success - TRUE if line could be evaluated else FALSE
  906.  
  907.  
  908. EXAMPLE
  909.  
  910.  
  911. NOTES
  912.        Make sure that the given array is big enough to hold all values or
  913.        some memory area may be overwritten.
  914.  
  915.        Fields which can't be evaluated are left unchanged.
  916.  
  917.  
  918. BUGS
  919.  
  920.  
  921. SEE ALSO
  922.        iniGetWordA(), iniGetLongA(), iniReadByteA(), iniPutByteA(),
  923.        <libraries/ini_lib.h>
  924.  
  925.  
  926. ini.library/iniGetContextItem
  927.  
  928. NAME
  929.        iniGetContextItem -- Gets the name of the context item
  930.  
  931.  
  932. SYNOPSIS
  933.        Buffer = iniGetContextItem( ContextStr, ContextItemLine, Buffer );
  934.        D0                          A0          A1               A2
  935.  
  936.        APTR iniGetContextItem( struct ContextStr *, struct ContextItemLine *,
  937.            APTR );
  938.  
  939.  
  940. FUNCTION
  941.        Gets the context item name of the context item line given
  942.  
  943.  
  944. INPUTS
  945.        ContextStr - Context structure where context item lies
  946.        ContextItemLine - Pointer to context item line structure
  947.        Buffer - Optional buffer where to store name or NULL to create new
  948.  
  949.  
  950. RESULT
  951.        Buffer - APTR to newly created buffer if none was specified or NULL
  952.            on error. If existing buffer was given, it will be returned
  953.            instead.
  954.  
  955.  
  956. EXAMPLE
  957.  
  958.  
  959. NOTES
  960.        This function is called by all functions which evaluate INI file
  961.        context item data. It is, in fact, a low level function. The given
  962.        buffer must have a mininum size of 128 bytes.
  963.        If no buffer is given, the new one must be freed with iniFreeNameStr()
  964.  
  965.  
  966. BUGS
  967.  
  968.  
  969. SEE ALSO
  970.        iniGetContextName(), iniGetContextItemData(),
  971.        iniGetContextItemDataA(), <libraries/ini_lib.h>
  972.  
  973.  
  974. ini.library/iniGetContextItemData
  975.  
  976. NAME
  977.        iniGetContextItemData -- Gets the data of the context item
  978.  
  979.  
  980. SYNOPSIS
  981.        Buffer = iniGetContextItemData( ContextStr, ContextItemLine, Buffer );
  982.        D0                              A0          A1               A2
  983.  
  984.        APTR iniGetContextItemData( struct ContextStr *,
  985.            struct ContextItemLine *, APTR );
  986.  
  987.  
  988. FUNCTION
  989.        Gets the context item data of the context item line given
  990.  
  991.  
  992. INPUTS
  993.        ContextStr - Context structure where context item data lies
  994.        ContextItemLine - Pointer to context item line structure
  995.        Buffer - Optional buffer where to store data or NULL to create new
  996.  
  997.  
  998. RESULT
  999.        Buffer - APTR to newly created buffer if none was specified or NULL
  1000.            on error. If existing buffer was given, it will be returned
  1001.            instead.
  1002.  
  1003.  
  1004. EXAMPLE
  1005.  
  1006.  
  1007. NOTES
  1008.        This function is called by all functions which evaluate INI file
  1009.        context item data. It is, in fact, a low level function. The given
  1010.        buffer must have a mininum size of 128 bytes.
  1011.        If no buffer is given, the new one must be freed with iniFreeNameStr()
  1012.  
  1013.  
  1014. BUGS
  1015.  
  1016.  
  1017. SEE ALSO
  1018.        iniGetContextName(), iniGetContextItem(), iniContextItemDataA(),
  1019.        <libraries/ini_lib.h>
  1020.  
  1021.  
  1022. ini.library/iniGetContextItemDataA
  1023.  
  1024. NAME
  1025.        iniGetContextItemDataA -- Gets the data of the context item array
  1026.  
  1027.  
  1028. SYNOPSIS
  1029.        Buffer = iniGetContextItemDataA( ContextStr, ContextItemLine,
  1030.        D0                               A0          A1
  1031.                                         Buffer, Number );
  1032.                                         A2      D0
  1033.  
  1034.        APTR iniGetContextItemDataA( struct ContextStr *,
  1035.            struct ContextItemLine *, APTR, ULONG );
  1036.  
  1037.  
  1038. FUNCTION
  1039.        Gets the context item array data of the context item line given
  1040.  
  1041.  
  1042. INPUTS
  1043.        ContextStr - Context structure where context item array lies
  1044.        ContextItemLine - Pointer to context item line structure
  1045.        Buffer - Optional buffer where to store data or NULL to create new
  1046.        Number - The entry which should be extracted out of the array. NULL
  1047.            is the first one
  1048.  
  1049.  
  1050. RESULT
  1051.        Buffer - APTR to newly created buffer if none was specified or NULL
  1052.            on error. If existing buffer was given, it will be returned
  1053.            instead.
  1054.  
  1055.  
  1056. EXAMPLE
  1057.  
  1058.  
  1059. NOTES
  1060.        This function is called by all functions which evaluate INI file
  1061.        context item array data. It is, in fact, a low level function. The
  1062.        given buffer must have a mininum size of 128 bytes.
  1063.        If no buffer is given, the new one must be freed with iniFreeNameStr()
  1064.  
  1065.  
  1066. BUGS
  1067.  
  1068.  
  1069. SEE ALSO
  1070.        iniGetContextName(), iniGetContextItem(), iniGetContextItemData(),
  1071.        <libraries/ini_lib.h>
  1072.  
  1073.  
  1074. ini.library/iniGetContextName
  1075.  
  1076. NAME
  1077.        iniGetContextName - Gets the name of the context
  1078.  
  1079.  
  1080. SYNOPSIS
  1081.        Buffer = iniGetContextName( ContextLine, Buffer );
  1082.        D0                          A0           A1
  1083.  
  1084.        APTR iniGetContextName( char ContextLine *, APTR );
  1085.  
  1086.  
  1087. FUNCTION
  1088.        Gets the context name of the context line given
  1089.  
  1090.  
  1091. INPUTS
  1092.        ContextStr - Context structure where context line lies
  1093.        Buffer - Optional buffer where to store name or NULL to create new
  1094.  
  1095.  
  1096. RESULT
  1097.        Buffer - APTR to newly created buffer if none was specified or NULL
  1098.            on error. If existing buffer was given, it will be returned
  1099.            instead.
  1100.  
  1101.  
  1102. EXAMPLE
  1103.  
  1104.  
  1105. NOTES
  1106.        This function is called by all functions which evaluate INI file
  1107.        context names. It is, in fact, a low level function. The given
  1108.        buffer must have a mininum size of 128 bytes.
  1109.        If no buffer is given, the new one must be freed with iniFreeNameStr()
  1110.  
  1111.  
  1112. BUGS
  1113.  
  1114.  
  1115. SEE ALSO
  1116.        iniGetContextItem(), iniGetContextItemData(),
  1117.        iniGetContextItemDataA(), <libraries/ini_lib.h>
  1118.  
  1119.  
  1120. ini.library/iniGetFloat
  1121.  
  1122. NAME
  1123.        iniGetFloat -- Gets a quick floating point value
  1124.  
  1125.  
  1126. SYNOPSIS
  1127.        QFloatValue = iniGetFloat( ContextStr, ContextItemLine, Default );
  1128.        D0                         A0          A1               D0
  1129.  
  1130.        ULONG iniGetFloat( struct ContextStr *, struct ContextItemLine *,
  1131.            ULONG );
  1132.  
  1133.  
  1134. FUNCTION
  1135.        Reads a quick float value out of the given context item line
  1136.  
  1137.  
  1138. INPUTS
  1139.        ContextStr - Context structure where quick float value lies in
  1140.        ContextItemLine - Context item line where to extract quick float
  1141.        Default - Default value to take if it can't be evaluated
  1142.  
  1143.  
  1144. RESULT
  1145.        QFloatValue - The quick float value extracted out of the context item
  1146.            line
  1147.  
  1148.  
  1149. EXAMPLE
  1150.  
  1151.  
  1152. NOTES
  1153.        This function is called from iniReadFloat().
  1154.        Only the first four fractional digits are evaluated. However, the
  1155.        5th digit is evaluated for rounding purposes.
  1156.  
  1157.  
  1158. BUGS
  1159.  
  1160.  
  1161. SEE ALSO
  1162.        iniGetLong(), iniGetStr(), iniGetFloatA(), iniPutFloat(),
  1163.        iniReadFloat(), iniWriteFloat(), <libraries/ini_lib.h>
  1164.  
  1165.  
  1166. ini.library/iniGetFloatA
  1167.  
  1168. NAME
  1169.        iniGetFloatA -- Gets quick floating point value(s) out of an array
  1170.  
  1171.  
  1172. SYNOPSIS
  1173.        success = iniGetFloatA( ContextStr, ContextItemLine, Array, Entries );
  1174.        D0                      A0          A1               A2     D0
  1175.  
  1176.        BOOL iniGetFloatA( struct ContextStr *, struct ContextItemLine *,
  1177.            struct Array *, ULONG );
  1178.  
  1179.  
  1180. FUNCTION
  1181.        Reads one or more quick float value(s) out of the given context item
  1182.        line
  1183.  
  1184.  
  1185. INPUTS
  1186.        ContextStr - Context structure where quick float values lie in
  1187.        ContextItemLine - Context item line where to extract quick floats
  1188.        Array - The array where to store the quick float values
  1189.        Entries - Number of array entries. If the array in the INI file is
  1190.             bigger, the remaining entries will be ignored.
  1191.  
  1192.  
  1193. RESULT
  1194.        success - TRUE if accessing was successful else NULL.
  1195.  
  1196.  
  1197. EXAMPLE
  1198.  
  1199.  
  1200. NOTES
  1201.        This function is called from iniReadFloatA().
  1202.        Only the first four fractional digits are evaluated. However, the
  1203.        5th digit is evaluated for rounding purposes.
  1204.        Array fields which can't be evaluated (e.g. bad syntax) are left
  1205.        unchanged. So it's good to fill the array with default values first.
  1206.  
  1207.  
  1208. BUGS
  1209.  
  1210.  
  1211. SEE ALSO
  1212.        iniGetLongA(), iniGetStrA(), iniGetFloat(), iniPutFloatA(),
  1213.        iniReadFloatA(), iniWriteFloatA(), <libraries/ini_lib.h>
  1214.  
  1215.  
  1216. ini.library/iniGetLong
  1217.  
  1218. NAME
  1219.        iniGetLong -- Gets a long integer value
  1220.  
  1221.  
  1222. SYNOPSIS
  1223.        LongValue = iniGetLong( ContextStr, ContextItemLine, Default );
  1224.        D0                      A0          A1               D0
  1225.  
  1226.        ULONG iniGetLong( struct ContextStr *, struct ContextItemLine *,
  1227.            ULONG );
  1228.  
  1229.  
  1230. FUNCTION
  1231.        Reads a long integer value out of the given context item line
  1232.  
  1233.  
  1234. INPUTS
  1235.        ContextStr - Context structure where long integer value lies in
  1236.        ContextItemLine - Context item line where to extract long integer
  1237.        Default - Default value to take if it can't be evaluated
  1238.  
  1239.  
  1240. RESULT
  1241.        LongValue - The long integer value extracted out of the context item
  1242.            line
  1243.  
  1244.  
  1245. EXAMPLE
  1246.  
  1247.  
  1248. NOTES
  1249.        This function is called from iniReadLong().
  1250.  
  1251.  
  1252. BUGS
  1253.  
  1254.  
  1255. SEE ALSO
  1256.        iniGetFloat(), iniGetStr(), iniGetLongA(), iniPutLong(),
  1257.        iniReadLong(), iniWriteLong(), <libraries/ini_lib.h>
  1258.  
  1259.  
  1260. ini.library/iniGetLongA
  1261.  
  1262. NAME
  1263.        iniGetLongA -- Gets long integer value(s) out of an array
  1264.  
  1265.  
  1266. SYNOPSIS
  1267.        success = iniGetLongA( ContextStr, ContextItemLine, Array, Entries );
  1268.        D0                     A0          A1               A2     D0
  1269.  
  1270.        BOOL iniGetLongA( struct ContextStr *, struct ContextItemLine *,
  1271.            struct Array *, ULONG );
  1272.  
  1273.  
  1274. FUNCTION
  1275.        Reads one or more long integer value(s) out of the given context item
  1276.        line
  1277.  
  1278.  
  1279. INPUTS
  1280.        ContextStr - Context structure where long integer values lie in
  1281.        ContextItemLine - Context item line where to extract long integers
  1282.        Array - The array where to store the long integer values
  1283.        Entries - Number of array entries. If the array in the INI file is
  1284.             bigger, the remaining entries will be ignored.
  1285.  
  1286.  
  1287. RESULT
  1288.        success - TRUE if accessing was successful else NULL.
  1289.  
  1290.  
  1291. EXAMPLE
  1292.  
  1293.  
  1294. NOTES
  1295.        This function is called from iniReadLongA().
  1296.        Array fields which can't be evaluated (e.g. bad syntax) are left
  1297.        unchanged. So it's good to fill the array with default values first.
  1298.  
  1299.  
  1300. BUGS
  1301.  
  1302.  
  1303. SEE ALSO
  1304.        iniGetFloatA(), iniGetStrA(), iniGetLong(), iniPutLongA(),
  1305.        iniReadLongA(), iniWriteLongA(), <libraries/ini_lib.h>
  1306.  
  1307.  
  1308. ini.library/iniGetNumArrays
  1309.  
  1310. NAME
  1311.        iniGetNumArrays -- Gets the amount of array fields
  1312.  
  1313.  
  1314. SYNOPSIS
  1315.        Arrays = iniGetNumArrays( ContextStr, ContextItemLine );
  1316.        D0                        A0          A1
  1317.  
  1318.        ULONG iniGetNumArrays( struct ContextStr *,
  1319.            struct ContextItemLine *);
  1320.  
  1321.  
  1322. FUNCTION
  1323.        Returns the amount of array entries in the given context item array.
  1324.  
  1325.  
  1326. INPUTS
  1327.        ContextStr - Context structure where array lies in
  1328.        ContextItemLine - Context item line structure where array starts
  1329.  
  1330.  
  1331. RESULT
  1332.        Arrays - Number of arrays in the given context item line
  1333.  
  1334. EXAMPLE
  1335.  
  1336.  
  1337. NOTES
  1338.        This function usually is used for dynamic array fields.
  1339.        If an error occurs during evaluation, NULL is returned.
  1340.  
  1341.  
  1342. BUGS
  1343.  
  1344.  
  1345. SEE ALSO
  1346.        iniGetLongA(), iniGetWordA(), iniGetByteA(), iniGetFloatA(),
  1347.        iniGetStrA(), <libraries/ini_lib.h>
  1348.  
  1349.  
  1350. ini.library/iniGetStr
  1351.  
  1352. NAME
  1353.        iniGetStr -- Gets a string
  1354.  
  1355.  
  1356. SYNOPSIS
  1357.        String = iniGetStr( ContextStr, ContextItemLine, Default );
  1358.        D0                  A0          A1               A2
  1359.  
  1360.        APTR iniGetStr( struct ContextStr *, struct ContextItemLine *, APTR );
  1361.  
  1362.  
  1363. FUNCTION
  1364.        Reads a string out of the given context item line
  1365.  
  1366.  
  1367. INPUTS
  1368.        ContextStr - Context structure where string lies in
  1369.        ContextItemLine - Context item line where to extract string
  1370.        Default - Default value to take if it can't be evaluated
  1371.  
  1372.  
  1373. RESULT
  1374.        String - The string extracted out of the context item line
  1375.  
  1376.  
  1377. EXAMPLE
  1378.  
  1379.  
  1380. NOTES
  1381.        This function is called from iniReadStr().
  1382.        This function calls iniGetContextItemData() with no buffer, this
  1383.        means that the string returned must be deallocated with
  1384.        iniFreeNameStr()
  1385.  
  1386.  
  1387. BUGS
  1388.  
  1389.  
  1390. SEE ALSO
  1391.        iniGetContextItemData(), iniGetLongA(), iniGetFloatA(), iniGetStr(),
  1392.        iniPutStr(), iniReadStrA(), iniWriteStrA(), <libraries/ini_lib.h>
  1393.  
  1394.  
  1395. ini.library/iniGetStrA
  1396.  
  1397. NAME
  1398.        iniGetStrA -- Extracts strings out of an array
  1399.  
  1400.  
  1401. SYNOPSIS
  1402.        success = iniGetStrA( ContextStr, ContextItemLine, Array, Entries );
  1403.        D0                    A0          A1               A2     D0
  1404.  
  1405.        BOOL iniGetStrA( struct ContextStr *, struct ContextItemLine *,
  1406.            struct Array *, ULONG );
  1407.  
  1408.  
  1409. FUNCTION
  1410.        Reads one or more strings out of the given context item line
  1411.  
  1412.  
  1413. INPUTS
  1414.        ContextStr - Context structure where string values lie in
  1415.        ContextItemLine - Context item line where to extract strings
  1416.        Array - The array where to store the pointers to the strings
  1417.        Entries - Number of array entries. If the array in the INI file is
  1418.             bigger, the remaining entries will be ignored.
  1419.  
  1420.  
  1421. RESULT
  1422.        success - TRUE if accessing was successful else NULL.
  1423.  
  1424.  
  1425. EXAMPLE
  1426.  
  1427.  
  1428. NOTES
  1429.        This function is called from iniReadStrA().
  1430.        This function calls iniGetContextItemData() with no buffer.
  1431.        Array fields which can't be evaluated (e.g. bad syntax) are left
  1432.        unchanged. So it's good to fill the array with default strings first.
  1433.        All entries of the array must be deallocated with iniFreeNameStr()
  1434.        when the strings are no longer of use. This means that the default
  1435.        entries of the array must be iniAllocNameStr() strings!
  1436.  
  1437.  
  1438. BUGS
  1439.  
  1440.  
  1441. SEE ALSO
  1442.        iniGetLongA(), iniGetFloatA(), iniGetStr(), iniPutStrA(),
  1443.        iniReadStrA(), iniWriteStrA(), <libraries/ini_lib.h>
  1444.  
  1445.  
  1446. ini.library/iniGetWordA
  1447.  
  1448. NAME
  1449.        iniGetWordA -- reads a context item array into a (U)WORD array.
  1450.  
  1451.  
  1452. SYNOPSIS
  1453.        success = iniGetWordA( ContextStr, ContextItemLine, Array, Entries );
  1454.        D0                     A0          A1               A2     D0
  1455.  
  1456.        BOOL iniGetWordA( struct ContextStr *, struct ContextItemLine *,
  1457.            struct Array *, ULONG );
  1458.  
  1459.  
  1460. FUNCTION
  1461.        Reads a context item array and stores the read words into a
  1462.        (U)WORD table you specified.
  1463.  
  1464.  
  1465. INPUTS
  1466.        ContextStr - The context structure where the context line is in
  1467.        ContextItemLine - The context item line where the array is
  1468.        Array - An (U)WORD array where to store the values
  1469.        Entries - Number of entries to read (further entries will be ignored)
  1470.  
  1471.  
  1472. RESULT
  1473.        success - TRUE if line could be evaluated else FALSE
  1474.  
  1475.  
  1476. EXAMPLE
  1477.  
  1478.  
  1479. NOTES
  1480.        Make sure that the given array is big enough to hold all values or
  1481.        some memory area may be overwritten.
  1482.  
  1483.        Fields which can't be evaluated are left unchanged.
  1484.  
  1485.  
  1486. BUGS
  1487.  
  1488.  
  1489. SEE ALSO
  1490.        iniGetByteA(), iniGetLongA(), iniReadWordA(), iniPutWordA(),
  1491.        <libraries/ini_lib.h>
  1492.  
  1493.  
  1494. ini.library/iniInsertContext
  1495.  
  1496. NAME
  1497.        iniInsertContext -- inserts a context in an INI file structure
  1498.  
  1499.  
  1500. SYNOPSIS
  1501.        iniInsertContext( iniFile, ContextStr, PredContext );
  1502.                          A0       A1          A2
  1503.  
  1504.        void iniInsertContext( struct iniFile *, struct ContextStr *,
  1505.            struct PredContext *);
  1506.  
  1507.  
  1508. FUNCTION
  1509.        Inserts a context in an INI file and all its associated lines.
  1510.  
  1511.  
  1512. INPUTS
  1513.        iniFile - INI file structure where to insert context structure
  1514.        ContextStr - The context structure to be inserted
  1515.        PredContext - Context structure of the structure where to insert it
  1516.  
  1517.  
  1518. RESULT
  1519.  
  1520.  
  1521. EXAMPLE
  1522.  
  1523.  
  1524. NOTES
  1525.  
  1526.  
  1527. BUGS
  1528.  
  1529.  
  1530. SEE ALSO
  1531.       iniFreeContext(), iniRemContext(), iniDeleteContext(),
  1532.       <libraries/ini_lib.h>
  1533.  
  1534.  
  1535. ini.library/iniInsertContextItem
  1536.  
  1537. NAME
  1538.        iniInsertContextItem -- inserts a context item line in an INI file.
  1539.  
  1540.  
  1541. SYNOPSIS
  1542.        iniInsertContextItem( ContextStr, ContextItemLine, PredLine );
  1543.                              A0          A1               A2
  1544.  
  1545.        void iniInsertContextItem( struct ContextStr *,
  1546.            struct ContextItemLine *, struct PredLine *);
  1547.  
  1548.  
  1549. FUNCTION
  1550.        Inserts a context item line in an INI context.
  1551.  
  1552.  
  1553. INPUTS
  1554.        ContextStr - The pointer of the context structure where to insert item
  1555.        ContextItemLine - The pointer of the context item line to be inserted.
  1556.        PredLine - The context item line where to insert it.
  1557.  
  1558.  
  1559. RESULT
  1560.  
  1561.  
  1562. EXAMPLE
  1563.  
  1564.  
  1565. NOTES
  1566.  
  1567.  
  1568. BUGS
  1569.  
  1570.  
  1571. SEE ALSO
  1572.        iniFreeContextItem(), iniRemContextItem(), iniDeleteContextItem(),
  1573.        <libraries/ini_lib.h>
  1574.  
  1575. ini.library/iniIntToStr
  1576.  
  1577. NAME
  1578.        iniIntToStr -- Converts an integer value to a string.
  1579.  
  1580.  
  1581. SYNOPSIS
  1582.        string = iniIntToStr( Buffer, Integer, Format, Len, ZeroSep );
  1583.        D0                    A0      D0       D1      D2   D3:8
  1584.  
  1585.        APTR iniIntToStr( APTR, ULONG, ULONG, ULONG, UBYTE );
  1586.  
  1587.  
  1588. FUNCTION
  1589.        This function is used to convert an integer value to a standard
  1590.        ASCII string.
  1591.  
  1592.  
  1593. INPUTS
  1594.        Buffer - A pointer to at least a 128 byte buffer or NULL to create a
  1595.            new one.
  1596.        Integer - Integer value to convert.
  1597.        Format - Format of the outputted string. Can be any of:
  1598.            INI_FORMAT_DEC - Use decimal with no precedor
  1599.            INI_FORMAT_DEC_CHAR - Use decimal with # precedor
  1600.            INI_FORMAT_HEX - Use hexadecimal with $ precedor
  1601.            INI_FORMAT_HEX_0X - Use hexadecimal with 0x precedor
  1602.            INI_FORMAT_BIN - Use binary with % precedor
  1603.            INI_FORMAT_OCT - Use octal with & precedor
  1604.            INI_FORMAT_YESNO - Use No for zero, Yes for all others
  1605.            INI_FORMAT_YN - Use N for zero, Y for all others
  1606.            INI_FORMAT_TRUEFALSE - Use False for zero, True for all others
  1607.            INI_FORMAT_ONOFF - Use Off for zero, On for all others
  1608.            INI_UNSIGNED - Add this to indicate unsigned integer
  1609.        Len - Forced length of outputted string or NULL for no force.
  1610.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  1611.  
  1612.  
  1613. RESULT
  1614.        string - Pointer to the string where the converted string is stored.
  1615.  
  1616.  
  1617. EXAMPLE
  1618.  
  1619.  
  1620. NOTES
  1621.  
  1622.  
  1623. BUGS
  1624.       The buffer is not checked for overflow. That means, IntLen should
  1625.       should be lesser than your buffer.
  1626.  
  1627.  
  1628. SEE ALSO
  1629.       iniStrToInt(), iniStrToFloat(), iniFloatToStr(), <libraries/ini_lib.h>
  1630.  
  1631.  
  1632. ini.library/iniOpenDefault
  1633.  
  1634. NAME
  1635.        iniOpenDefault -- Opens INI file for read access
  1636.  
  1637.  
  1638. SYNOPSIS
  1639.        iniFile = iniOpenDefault( address, name, len );
  1640.        D0                        A0       A1    D0
  1641.  
  1642.        struct iniFile *iniOpenDefault( APTR, char name *, ULONG );
  1643.  
  1644.  
  1645. FUNCTION
  1646.        Opens an INI file for read access and creates a iniFile structure
  1647.        for it. If the file doesn't exist, a default file will be created.
  1648.  
  1649.  
  1650. INPUTS
  1651.        address - Address where default INI file lies (in memory)
  1652.        name - File name of the INI file to be accessed
  1653.        len - Length of the default INI file
  1654.  
  1655.  
  1656. RESULT
  1657.        iniFile - A valid INI file structure ready to be evaluated.
  1658.  
  1659.  
  1660. EXAMPLE
  1661.  
  1662.  
  1663. NOTES
  1664.        The default file will only be created, if the Open() fails with
  1665.        an ERROR_OBJECT_NOT_FOUND (code 205) error.
  1666.        If the default file can't be created (disk full, etc.) the function
  1667.        will use the default file in memory.
  1668.  
  1669.  
  1670. BUGS
  1671.  
  1672.  
  1673. SEE ALSO
  1674.        iniOpenFile(), iniOpenMem(), iniClose(), iniSaveFile(),
  1675.        <libraries/ini_lib.h>
  1676.  
  1677.  
  1678. ini.library/iniOpenFile
  1679.  
  1680. NAME
  1681.        iniOpenFile -- Prepares an INI file for context access
  1682.  
  1683.  
  1684. SYNOPSIS
  1685.        iniFile = iniOpenFile( name, accessMode );
  1686.        D0                     D1    D2
  1687.  
  1688.        struct iniFile *iniOpenFile( char name *, LONG );
  1689.  
  1690.  
  1691. FUNCTION
  1692.        Opens an INI file for read access and prepares an iniFile structure
  1693.        for evaluation. After this the INI file contents can be evaluated
  1694.  
  1695.  
  1696. INPUTS
  1697.        name - Name of the INI file to be opened.
  1698.        accessMode - Read mode of file (see <libraries/dos.h> for details)
  1699.  
  1700.  
  1701. RESULT
  1702.        iniFile - An INI file structure which is ready for evaluation
  1703.  
  1704.  
  1705. EXAMPLE
  1706.  
  1707.  
  1708. NOTES
  1709.  
  1710.  
  1711. BUGS
  1712.  
  1713.  
  1714. SEE ALSO
  1715.        iniOpenDefault(), iniOpenFromFH(), iniOpenMem(), iniClose(),
  1716.        iniSaveFile(), <libraries/ini_lib.h>, <libraries/dos.h>
  1717.  
  1718.  
  1719. ini.library/iniOpenFromFH
  1720.  
  1721. NAME
  1722.        iniOpenFromFH -- initializes an INI file from an already open file
  1723.  
  1724.  
  1725. SYNOPSIS
  1726.        iniFile = iniOpenFromFH( fh, len );
  1727.        D0                       D1  D2
  1728.  
  1729.        struct iniFile *iniOpenFromFH( BPTR, ULONG );
  1730.  
  1731.  
  1732. FUNCTION
  1733.        Reads the INI data from an already open file and initializes the
  1734.        iniFile structure.
  1735.  
  1736.  
  1737. INPUTS
  1738.        fh - BPTR to an file handle of the already opened file to be read.
  1739.        len - Length of file (or length of bytes to read at maximum)
  1740.  
  1741.  
  1742. RESULT
  1743.        iniFile - An initialized INI file structure ready for evaluation
  1744.  
  1745.  
  1746. EXAMPLE
  1747.  
  1748.  
  1749. NOTES
  1750.  
  1751.  
  1752. BUGS
  1753.  
  1754.  
  1755. SEE ALSO
  1756.        iniOpenDefault(), iniOpenFile(), iniOpenMem(), iniClose(),
  1757.        iniSaveFile(), iniSaveToFH(), <libraries/ini_lib.h>
  1758.  
  1759.  
  1760. ini.library/iniOpenMem
  1761.  
  1762. NAME
  1763.        iniOpenMem -- Initializes a INI file structure from an INI file
  1764.            already in memory.
  1765.  
  1766.  
  1767. SYNOPSIS
  1768.        iniFile = iniOpenMem( address, len );
  1769.        D0                    A0       D0
  1770.  
  1771.        struct iniFile *iniOpenMem( APTR, ULONG );
  1772.  
  1773.  
  1774. FUNCTION
  1775.        Initializes an INI file structure from an INI file already in
  1776.        memory.
  1777.  
  1778.  
  1779. INPUTS
  1780.        address - Address where the INI file lies
  1781.        len - Length of INI file in memory
  1782.  
  1783.  
  1784. RESULT
  1785.        iniFile - Valid initialized INI file structure ready to be evaluated
  1786.  
  1787.  
  1788. EXAMPLE
  1789.  
  1790.  
  1791. NOTES
  1792.  
  1793.  
  1794. BUGS
  1795.  
  1796.  
  1797. SEE ALSO
  1798.       iniOpenDefault(), iniOpenFile(), iniOpenFromFH(), iniClose(),
  1799.       iniSaveFile(), iniSaveToFH(), <libraries/ini_lib.h>
  1800.  
  1801.  
  1802. ini.library/iniPutByteA
  1803.  
  1804. NAME
  1805.        iniPutByteA -- writes an (U)BYTE array into an context item array.
  1806.  
  1807.  
  1808. SYNOPSIS
  1809.        success = iniPutByteA( ContextStr, ContextItemLine, Array, Entries,
  1810.        D0                     A0          A1               A2     D0
  1811.                               Format, Len, ZeroSep );
  1812.                               D1      D2   D3:8
  1813.  
  1814.        BOOL iniPutByteA( struct ContextStr *, struct ContextItemLine *,
  1815.            struct Array *, ULONG, ULONG, ULONG, UBYTE );
  1816.  
  1817.  
  1818. FUNCTION
  1819.        Writes the values of the given (U)BYTE table to the specified context
  1820.        item array.
  1821.  
  1822.  
  1823. INPUTS
  1824.        ContextStr - The context structure where context line should be put
  1825.        ContextItemLine - The context item line where the array is
  1826.        Array - An (U)BYTE array where to take the values from
  1827.        Entries - Number of entries to write
  1828.        Format - Format of array entries to write out:
  1829.            INI_FORMAT_DEC - Use decimal with no precedor
  1830.            INI_FORMAT_DEC_CHAR - Use decimal with # precedor
  1831.            INI_FORMAT_HEX - Use hexadecimal with $ precedor
  1832.            INI_FORMAT_HEX_0X - Use hexadecimal with 0x precedor
  1833.            INI_FORMAT_BIN - Use binary with % precedor
  1834.            INI_FORMAT_OCT - Use octal with & precedor
  1835.            INI_FORMAT_YESNO - Use No for zero, Yes for all others
  1836.            INI_FORMAT_YN - Use N for zero, Y for all others
  1837.            INI_FORMAT_TRUEFALSE - Use False for zero, True for all others
  1838.            INI_FORMAT_ONOFF - Use Off for zero, On for all others
  1839.            INI_UNSIGNED - Add this to indicate unsigned integer
  1840.        Len - Forced length of outputted string or NULL for no force.
  1841.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  1842.  
  1843.  
  1844. RESULT
  1845.        success - TRUE if line could be written else FALSE
  1846.  
  1847.  
  1848. EXAMPLE
  1849.  
  1850.  
  1851. NOTES
  1852.        This function is currently relatively slow. Especially with
  1853.        arrays with more than 16 entries.
  1854.  
  1855.  
  1856. BUGS
  1857.  
  1858.  
  1859. SEE ALSO
  1860.        iniPutWordA(), iniPutLongA(), iniWriteByteA(), iniGetByteA(),
  1861.        <libraries/ini_lib.h>
  1862.  
  1863.  
  1864. ini.library/iniPutFloat
  1865.  
  1866. NAME
  1867.        iniPutFloat -- Puts a quick floating point value into given item line
  1868.  
  1869.  
  1870. SYNOPSIS
  1871.        success = iniPutFloat( ContextStr, ContextItemLine, Value,
  1872.        D0                     A0          A1               D0
  1873.                               Format, Len, ZeroSep );
  1874.                               D1      D2   D3:8
  1875.  
  1876.        BOOL iniPutFloat( struct ContextStr *, struct ContextItemLine *,
  1877.            ULONG, ULONG, UBYTE );
  1878.  
  1879.  
  1880. FUNCTION
  1881.        Writes a quick float value into the given context item line
  1882.  
  1883.  
  1884. INPUTS
  1885.        ContextStr - Context structure where quick float value should be put
  1886.        ContextItemLine - Context item line where to store quick float
  1887.        Value - Value to be written
  1888.        FltFormat - Format of the floating point value. Can be any of:
  1889.            INI_FLOAT_FORMAT_DEC - Use decimal with point separator
  1890.            INI_FLOAT_UNSIGNED - Add this to indicate unsigned quick float
  1891.        IntLen - Forced length of integer part or NULL for no force.
  1892.        FracLen - Forced length of fractional part or NULL for no force.
  1893.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  1894.  
  1895.  
  1896. RESULT
  1897.        success - TRUE if successful write else FALSE
  1898.  
  1899.  
  1900. EXAMPLE
  1901.  
  1902.  
  1903. NOTES
  1904.        This function is called from iniWriteFloat().
  1905.  
  1906.  
  1907. BUGS
  1908.  
  1909.  
  1910. SEE ALSO
  1911.        iniPutLong(), iniPutStr(), iniPutFloatA(), iniGetFloat(),
  1912.        iniWriteFloat(), iniReadFloat(), <libraries/ini_lib.h>
  1913.  
  1914.  
  1915. ini.library/iniPutFloatA
  1916.  
  1917. NAME
  1918.        iniPutFloatA -- Puts quick floating point value(s) into item line(s)
  1919.  
  1920.  
  1921. SYNOPSIS
  1922.        success = iniPutFloatA( ContextStr, ContextItemLine, Array, Entries,
  1923.        D0                      A0          A1               A2     D0
  1924.                                FltFormat, IntLen, FracLen, ZeroSep );
  1925.                                D1         D2      D3       D4:8
  1926.  
  1927.        BOOL iniPutFloatA( struct ContextStr *, struct ContextItemLine *,
  1928.            struct Array *, ULONG, ULONG, ULONG, ULONG, UBYTE );
  1929.  
  1930.  
  1931. FUNCTION
  1932.        Writes one or more quick float value(s) from an array into the given
  1933.        context item line
  1934.  
  1935.  
  1936. INPUTS
  1937.        ContextStr - Context structure where quick float values should be put
  1938.        ContextItemLine - Context item line where to store quick floats
  1939.        Array - The array where to take the quick float values from
  1940.        Entries - Number of array entries. If the array in the INI file is
  1941.             bigger, the remaining entries will be ignored.
  1942.        FltFormat - Format of the floating point value. Can be any of:
  1943.            INI_FLOAT_FORMAT_DEC - Use decimal with point separator
  1944.            INI_FLOAT_UNSIGNED - Add this to indicate unsigned quick float
  1945.        IntLen - Forced length of integer part or NULL for no force.
  1946.        FracLen - Forced length of fractional part or NULL for no force.
  1947.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  1948.  
  1949.  
  1950. RESULT
  1951.        success - TRUE if accessing was successful else NULL.
  1952.  
  1953.  
  1954. EXAMPLE
  1955.  
  1956.  
  1957. NOTES
  1958.        This function is called from iniWriteFloatA().
  1959.        This function is currently relatively slow. Especially with
  1960.        arrays with more than 16 entries.
  1961.  
  1962.  
  1963. BUGS
  1964.  
  1965.  
  1966. SEE ALSO
  1967.        iniPutLongA(), iniPutStrA(), iniPutFloat(), iniGetFloatA(),
  1968.        iniWriteFloatA(), iniReadFloatA(), <libraries/ini_lib.h>
  1969.  
  1970.  
  1971. ini.library/iniPutLong
  1972.  
  1973. NAME
  1974.        iniPutLong -- Puts a long integer value into the context item line
  1975.  
  1976.  
  1977. SYNOPSIS
  1978.        success = iniPutLong( ContextStr, ContextItemLine, Value, Format,
  1979.        D0                    A0          A1               D0     D1
  1980.                              Len, ZeroSep );
  1981.                              D2   D3:8
  1982.  
  1983.        BOOL iniPutLong( struct ContextStr *, struct ContextItemLine *,
  1984.            ULONG, ULONG, ULONG, UBYTE );
  1985.  
  1986.  
  1987. FUNCTION
  1988.        Writes a long integer value into the given context item line
  1989.  
  1990.  
  1991. INPUTS
  1992.        ContextStr - Context structure where the long integers should be put
  1993.        ContextItemLine - Context item line where to store long integer
  1994.        Value - Value to be written
  1995.        Format - Format of the outputted string. Can be any of:
  1996.            INI_FORMAT_DEC - Use decimal with no precedor
  1997.            INI_FORMAT_DEC_CHAR - Use decimal with # precedor
  1998.            INI_FORMAT_HEX - Use hexadecimal with $ precedor
  1999.            INI_FORMAT_HEX_0X - Use hexadecimal with 0x precedor
  2000.            INI_FORMAT_BIN - Use binary with % precedor
  2001.            INI_FORMAT_OCT - Use octal with & precedor
  2002.            INI_FORMAT_YESNO - Use No for zero, Yes for all others
  2003.            INI_FORMAT_YN - Use N for zero, Y for all others
  2004.            INI_FORMAT_TRUEFALSE - Use False for zero, True for all others
  2005.            INI_FORMAT_ONOFF - Use Off for zero, On for all others
  2006.            INI_UNSIGNED - Add this to indicate unsigned integer
  2007.        Len - Forced length of outputted string or NULL for no force.
  2008.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  2009.  
  2010.  
  2011. RESULT
  2012.        success - TRUE if value could successfully be written or FALSE
  2013.  
  2014.  
  2015. EXAMPLE
  2016.  
  2017.  
  2018. NOTES
  2019.        This function is called from iniWriteLong().
  2020.  
  2021.  
  2022. BUGS
  2023.  
  2024.  
  2025. SEE ALSO
  2026.        iniPutFloat(), iniPutStr(), iniPutLongA(), iniGetLong(),
  2027.        iniWriteLong(), iniReadLong(), <libraries/ini_lib.h>
  2028.  
  2029.  
  2030. ini.library/iniPutLongA
  2031.  
  2032. NAME
  2033.        iniPutLongA -- Puts long integer value(s) into context item line(s)
  2034.  
  2035.  
  2036. SYNOPSIS
  2037.        success = iniPutLongA( ContextStr, ContextItemLine, Array, Entries,
  2038.        D0                     A0          A1               A2     D0
  2039.                               Format, Len, ZeroSep );
  2040.                               D1      D2   D3:8
  2041.  
  2042.        BOOL iniPutLongA( struct ContextStr *, struct ContextItemLine *,
  2043.            struct Array *, ULONG, ULONG, ULONG, UBYTE );
  2044.  
  2045.  
  2046. FUNCTION
  2047.        Writes one or more long integer value(s) from the given array into
  2048.        the specified context item line(s).
  2049.  
  2050.  
  2051. INPUTS
  2052.        ContextStr - Context structure where the long integers should be put
  2053.        ContextItemLine - Context item line where to store long integers
  2054.        Array - The array where to take the long integer values from
  2055.        Entries - Number of array entries.
  2056.        Format - Format of the outputted string. Can be any of:
  2057.            INI_FORMAT_DEC - Use decimal with no precedor
  2058.            INI_FORMAT_DEC_CHAR - Use decimal with # precedor
  2059.            INI_FORMAT_HEX - Use hexadecimal with $ precedor
  2060.            INI_FORMAT_HEX_0X - Use hexadecimal with 0x precedor
  2061.            INI_FORMAT_BIN - Use binary with % precedor
  2062.            INI_FORMAT_OCT - Use octal with & precedor
  2063.            INI_FORMAT_YESNO - Use No for zero, Yes for all others
  2064.            INI_FORMAT_YN - Use N for zero, Y for all others
  2065.            INI_FORMAT_TRUEFALSE - Use False for zero, True for all others
  2066.            INI_FORMAT_ONOFF - Use Off for zero, On for all others
  2067.            INI_UNSIGNED - Add this to indicate unsigned integer
  2068.        Len - Forced length of outputted string or NULL for no force.
  2069.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  2070.  
  2071.  
  2072. RESULT
  2073.        success - TRUE if accessing was successful else NULL.
  2074.  
  2075.  
  2076. EXAMPLE
  2077.  
  2078.  
  2079. NOTES
  2080.        This function is called from iniWriteLongA().
  2081.        This function is currently relatively slow. Especially with
  2082.        arrays with more than 16 entries.
  2083.  
  2084.  
  2085. BUGS
  2086.  
  2087.  
  2088. SEE ALSO
  2089.        iniPutFloatA(), iniPutStrA(), iniPutLong(), iniGetLongA(),
  2090.        iniWriteLongA(), iniReadLongA(), <libraries/ini_lib.h>
  2091.  
  2092.  
  2093. ini.library/iniPutStr
  2094.  
  2095. NAME
  2096.        iniPutStr -- Puts a string into context item line
  2097.  
  2098.  
  2099. SYNOPSIS
  2100.        success = iniPutStr( ContextStr, ContextItemLine, String );
  2101.        D0                   A0          A1               A2
  2102.  
  2103.        BOOL iniPutStr( struct ContextStr *, struct ContextItemLine *, APTR );
  2104.  
  2105.  
  2106. FUNCTION
  2107.        Writes a string into the given context item line.
  2108.  
  2109.  
  2110. INPUTS
  2111.        ContextStr - Context structure where string should be put
  2112.        ContextItemLine - Context item line where to store string
  2113.        String - String to be written
  2114.  
  2115.  
  2116. RESULT
  2117.        success - TRUE if writing was successful else FALSE
  2118.  
  2119.  
  2120. EXAMPLE
  2121.  
  2122.  
  2123. NOTES
  2124.        This function is called from iniReadStr().
  2125.  
  2126.  
  2127. BUGS
  2128.  
  2129.  
  2130. SEE ALSO
  2131.        iniPutLongA(), iniPutFloatA(), iniPutStr(), iniGetStr(),
  2132.        iniWriteStrA(), iniReadStrA(), <libraries/ini_lib.h>
  2133.  
  2134.  
  2135. ini.library/iniPutStrA
  2136.  
  2137. NAME
  2138.        iniPutStrA -- Stores array(s) of string into the context item line(s)
  2139.  
  2140.  
  2141. SYNOPSIS
  2142.        success = iniPutStrA( ContextStr, ContextItemLine, Array, Entries );
  2143.        D0                    A0          A1               A2     D0
  2144.  
  2145.        BOOL iniPutStrA( struct ContextStr *, struct ContextItemLine *,
  2146.            struct Array *, ULONG );
  2147.  
  2148.  
  2149. FUNCTION
  2150.        Writes one or more strings into the given context item line from an
  2151.        specified array.
  2152.  
  2153.  
  2154. INPUTS
  2155.        ContextStr - Context structure where strings should be put
  2156.        ContextItemLine - Context item line where to store strings
  2157.        Array - The array where to take the pointers to the strings from
  2158.        Entries - Number of array entries. If the array in the INI file is
  2159.             bigger, the remaining entries will be ignored.
  2160.  
  2161.  
  2162. RESULT
  2163.        success - TRUE if accessing was successful else NULL.
  2164.  
  2165.  
  2166. EXAMPLE
  2167.  
  2168.  
  2169. NOTES
  2170.        This function is called from iniWriteStrA().
  2171.  
  2172.  
  2173. BUGS
  2174.  
  2175.  
  2176. SEE ALSO
  2177.        iniPutLongA(), iniPutFloatA(), iniPutStr(), iniGetStrA(),
  2178.        iniWriteStrA(), iniReadStrA(), <libraries/ini_lib.h>
  2179.  
  2180.  
  2181. ini.library/iniPutWordA
  2182.  
  2183. NAME
  2184.        iniPutWordA -- writes a (U)WORD array into a context item array.
  2185.  
  2186.  
  2187. SYNOPSIS
  2188.        success = iniPutWordA( ContextStr, ContextItemLine, Array, Entries,
  2189.        D0                     A0          A1               A2     D0
  2190.                               Format, Len, ZeroSep );
  2191.                               D1      D2   D3:8
  2192.  
  2193.        BOOL iniPutWordA( struct ContextStr *, struct ContextItemLine *,
  2194.            struct Array *, ULONG, ULONG, ULONG, UBYTE );
  2195.  
  2196.  
  2197. FUNCTION
  2198.        Writes a context item array and stores the write words from a
  2199.        (U)WORD table you specified.
  2200.  
  2201.  
  2202. INPUTS
  2203.        ContextStr - The context structure where the context line is in
  2204.        ContextItemLine - The context item line where the array is
  2205.        Array - An (U)WORD array where to store the values
  2206.        Entries - Number of entries to read (further entries will be ignored)
  2207.        Format - Format of the outputted string. Can be any of:
  2208.            INI_FORMAT_DEC - Use decimal with no precedor
  2209.            INI_FORMAT_DEC_CHAR - Use decimal with # precedor
  2210.            INI_FORMAT_HEX - Use hexadecimal with $ precedor
  2211.            INI_FORMAT_HEX_0X - Use hexadecimal with 0x precedor
  2212.            INI_FORMAT_BIN - Use binary with % precedor
  2213.            INI_FORMAT_OCT - Use octal with & precedor
  2214.            INI_FORMAT_YESNO - Use No for zero, Yes for all others
  2215.            INI_FORMAT_YN - Use N for zero, Y for all others
  2216.            INI_FORMAT_TRUEFALSE - Use False for zero, True for all others
  2217.            INI_FORMAT_ONOFF - Use Off for zero, On for all others
  2218.            INI_UNSIGNED - Add this to indicate unsigned integer
  2219.        Len - Forced length of outputted string or NULL for no force.
  2220.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  2221.  
  2222.  
  2223. RESULT
  2224.  
  2225.  
  2226. EXAMPLE
  2227.  
  2228.  
  2229. NOTES
  2230.        This function is currently relatively slow. Especially with
  2231.        arrays with more than 16 entries.
  2232.  
  2233.  
  2234. BUGS
  2235.  
  2236.  
  2237. SEE ALSO
  2238.        iniPutByteA(), iniPutLongA(), iniWriteWordA(), iniReadWordA(),
  2239.        <libraries/ini_lib.h>
  2240.  
  2241.  
  2242. ini.library/iniReadByteA
  2243.  
  2244. NAME
  2245.        iniReadByteA -- reads a context item array into a (U)BYTE array.
  2246.  
  2247.  
  2248. SYNOPSIS
  2249.        success = iniReadByteA( iniFile, ContextName, ItemName, Array,
  2250.        D0                      A0       A1           A2        A3
  2251.                                Entries, Flags );
  2252.                                D0       D1
  2253.  
  2254.        BOOL iniReadByteA( struct iniFile *, APTR, APTR, struct Array *,
  2255.            ULONG, ULONG );
  2256.  
  2257.  
  2258. FUNCTION
  2259.        Searches a context item in a context you specified by name and stores
  2260.        the read bytes into a (U)BYTE table you specified.
  2261.  
  2262.  
  2263. INPUTS
  2264.        iniFile - INI file to be evaluated
  2265.        ContextName - Name of the context where context item is
  2266.        ItemName - Name of the context item to be searched
  2267.        Array - An (U)BYTE array where to store the values
  2268.        Entries - Number of entries to read (further entries will be ignored)
  2269.        Flags - Search flags. They're currently defined as:
  2270.            INIF_ContextCase - Set this flag if the search of the context
  2271.                name should be case sensitive.
  2272.            INIF_ContextItemCase - Set this flag if the search of the context
  2273.                item name should be case sensitive.
  2274.  
  2275.  
  2276. RESULT
  2277.        success - TRUE if line could be evaluated else FALSE
  2278.  
  2279.  
  2280. EXAMPLE
  2281.  
  2282.  
  2283. NOTES
  2284.        Make sure that the given array is big enough to hold all values or
  2285.        some memory area may be overwritten.
  2286.  
  2287.        Fields which can't be evaluated are left unchanged.
  2288.  
  2289.  
  2290. BUGS
  2291.  
  2292.  
  2293. SEE ALSO
  2294.        iniReadWordA(), iniReadLongA(), iniGetByteA(), iniWriteByteA(),
  2295.        <libraries/ini_lib.h>
  2296.  
  2297.  
  2298. ini.library/iniReadFloat
  2299.  
  2300. NAME
  2301.        iniReadFloat -- Reads a quick floating point value
  2302.  
  2303.  
  2304. SYNOPSIS
  2305.        QFloatValue = iniReadFloat( iniFile, ContextName, ItemName, Default,
  2306.        D0                          A0       A1           A2        D0
  2307.                                    Flags );
  2308.                                    D1
  2309.  
  2310.        ULONG iniReadFloat( struct iniFile *, APTR, APTR, ULONG, ULONG );
  2311.  
  2312.  
  2313. FUNCTION
  2314.        Searches the INI file for the desired context and the desired context
  2315.        items and returns its quick floating point value.
  2316.  
  2317.  
  2318. INPUTS
  2319.        
  2320.        iniFile - INI file to be evaluated
  2321.        ContextName - Name of the context where context item is
  2322.        ItemName - Name of the context item to be searched
  2323.        Default - Default value to take if contents could not be evaluated
  2324.        Flags - Search flags. They're currently defined as:
  2325.            INIF_ContextCase - Set this flag if the search of the context
  2326.                name should be case sensitive.
  2327.            INIF_ContextItemCase - Set this flag if the search of the context
  2328.                item name should be case sensitive.
  2329.  
  2330.  
  2331. RESULT
  2332.        QFloatValue - The quick float value extracted out
  2333.  
  2334.  
  2335. EXAMPLE
  2336.  
  2337.  
  2338. NOTES
  2339.        Only the first four fractional digits are evaluated. However, the
  2340.        5th digit is evaluated for rounding purposes.
  2341.  
  2342.  
  2343. BUGS
  2344.  
  2345.  
  2346. SEE ALSO
  2347.        iniReadLong(), iniReadStr(), iniReadFloatA(), iniWriteFloat(),
  2348.        GetFloat(), iniPutFloat(), <libraries/ini_lib.h>
  2349.  
  2350.  
  2351. ini.library/iniReadFloatA
  2352.  
  2353. NAME
  2354.        iniReadFloatA -- Reads quick floating point value(s) into an array
  2355.  
  2356.  
  2357. SYNOPSIS
  2358.        success = iniReadFloatA( iniFile, ContextName, ItemName, Array,
  2359.        D0                       A0          A1        A2        D0
  2360.                                 Entries, Flags );
  2361.  
  2362.        BOOL iniReadFloatA( struct iniFile *, APTR, APTR, struct Array *,
  2363.            ULONG, ULONG );
  2364.  
  2365.  
  2366. FUNCTION
  2367.        Searches the context given for the string given in context item and
  2368.        reads one or more quick float value(s) and stores them into the
  2369.        specified array.
  2370.  
  2371.  
  2372. INPUTS
  2373.        iniFile - INI file to be evaluated
  2374.        ContextName - Name of the context where context item is
  2375.        ItemName - Name of the context item to be searched
  2376.        Default - Default value to take if contents could not be evaluated
  2377.        Flags - Search flags. They're currently defined as:
  2378.            INIF_ContextCase - Set this flag if the search of the context
  2379.                name should be case sensitive.
  2380.            INIF_ContextItemCase - Set this flag if the search of the context
  2381.                item name should be case sensitive.
  2382.  
  2383.  
  2384. RESULT
  2385.        success - TRUE if accessing was successful else NULL.
  2386.  
  2387.  
  2388. EXAMPLE
  2389.  
  2390.  
  2391. NOTES
  2392.        This function is currently relatively slow. Especially with
  2393.        arrays with more than 16 entries.
  2394.        Only the first four fractional digits are evaluated. However, the
  2395.        5th digit is evaluated for rounding purposes.
  2396.        Array fields which can't be evaluated (e.g. bad syntax) are left
  2397.        unchanged. So it's good to fill the array with default values first.
  2398.  
  2399.  
  2400. BUGS
  2401.  
  2402.  
  2403. SEE ALSO
  2404.        iniWriteLongA(), iniWriteStrA(), iniReadFloat(), iniWriteFloatA(),
  2405.        iniGetFloatA(), iniPutFloatA(), <libraries/ini_lib.h>
  2406.  
  2407.  
  2408. ini.library/iniReadLong
  2409.  
  2410. NAME
  2411.        iniReadLong -- Reads a long integer value
  2412.  
  2413.  
  2414. SYNOPSIS
  2415.        LongValue = iniReadLong( iniFile, ContextName, ItemName, Default,
  2416.        D0                       A0       A1           A2        D0
  2417.                                 Flags );
  2418.                                 D1
  2419.  
  2420.        ULONG iniReadLong( struct iniFile *, APTR, APTR, ULONG, ULONG );
  2421.  
  2422.  
  2423. FUNCTION
  2424.        Searches the INI file for the desired context and the desired context
  2425.        items and returns its long integer value.
  2426.  
  2427.  
  2428. INPUTS
  2429.        
  2430.        iniFile - INI file to be evaluated
  2431.        ContextName - Name of the context where context item is
  2432.        ItemName - Name of the context item to be searched
  2433.        Default - Default value to take if contents could not be evaluated
  2434.        Flags - Search flags. They're currently defined as:
  2435.            INIF_ContextCase - Set this flag if the search of the context
  2436.                name should be case sensitive.
  2437.            INIF_ContextItemCase - Set this flag if the search of the context
  2438.                item name should be case sensitive.
  2439.  
  2440.  
  2441. RESULT
  2442.        LongValue - The long integer extracted out
  2443.  
  2444.  
  2445. EXAMPLE
  2446.  
  2447.  
  2448. NOTES
  2449.  
  2450.  
  2451. BUGS
  2452.  
  2453.  
  2454. SEE ALSO
  2455.        iniReadLong(), iniReadStr(), iniReadFloatA(), iniWriteFloat(),
  2456.        GetFloat(), PutFloat(), <libraries/ini_lib.h>
  2457.  
  2458.  
  2459. ini.library/iniReadLongA
  2460.  
  2461. NAME
  2462.        iniReadLongA -- Reads long integer value(s) into an array
  2463.  
  2464.  
  2465. SYNOPSIS
  2466.        success = iniReadLongA( iniFile, ContextName, ItemName, Array,
  2467.        D0                      A0          A1        A2        D0
  2468.                                Entries, Flags );
  2469.  
  2470.        BOOL iniReadLongA( struct iniFile *, APTR, APTR, struct Array *,
  2471.            ULONG, ULONG );
  2472.  
  2473.  
  2474. FUNCTION
  2475.        Searches the context given for the string given in context item and
  2476.        reads one or more long integer value(s) and stores them into the
  2477.        specified array.
  2478.  
  2479.  
  2480. INPUTS
  2481.        iniFile - INI file to be evaluated
  2482.        ContextName - Name of the context where context item is
  2483.        ItemName - Name of the context item to be searched
  2484.        Default - Default value to take if contents could not be evaluated
  2485.        Flags - Search flags. They're currently defined as:
  2486.            INIF_ContextCase - Set this flag if the search of the context
  2487.                name should be case sensitive.
  2488.            INIF_ContextItemCase - Set this flag if the search of the context
  2489.                item name should be case sensitive.
  2490.  
  2491.  
  2492. RESULT
  2493.        success - TRUE if accessing was successful else NULL.
  2494.  
  2495.  
  2496. EXAMPLE
  2497.  
  2498.  
  2499. NOTES
  2500.        Array fields which can't be evaluated (e.g. bad syntax) are left
  2501.        unchanged. So it's good to fill the array with default values first.
  2502.  
  2503.  
  2504. BUGS
  2505.  
  2506.  
  2507. SEE ALSO
  2508.        iniPutLongA(), iniPutStrA(), iniGetFloat(), iniPutFloatA(),
  2509.        iniReadFloatA(), iniWriteFloatA(), <libraries/ini_lib.h>
  2510.  
  2511.  
  2512. ini.library/iniReadStr
  2513.  
  2514. NAME
  2515.        iniReadStr -- Gets a string
  2516.  
  2517.  
  2518. SYNOPSIS
  2519.        String = iniReadStr( iniFile, ContextName, ItemName, Default,
  2520.        D0                   A0       A1           A2        A3
  2521.                             Flags );
  2522.                             D0
  2523.  
  2524.        APTR iniReadStr( struct iniFile *, APTR, APTR, APTR, ULONG );
  2525.  
  2526.  
  2527. FUNCTION
  2528.        Searches the given context item in the given context and returns, if
  2529.        found the context item data as a string.
  2530.  
  2531.  
  2532. INPUTS
  2533.        iniFile - INI file to be evaluated
  2534.        ContextName - Name of the context where context item is
  2535.        ItemName - Name of the context item to be searched
  2536.        Default - Default string to take if contents could not be evaluated
  2537.        Flags - Search flags. They're currently defined as:
  2538.            INIF_ContextCase - Set this flag if the search of the context
  2539.                name should be case sensitive.
  2540.            INIF_ContextItemCase - Set this flag if the search of the context
  2541.                item name should be case sensitive.
  2542.  
  2543.  
  2544. RESULT
  2545.        String - The string value extracted out
  2546.  
  2547.  
  2548. EXAMPLE
  2549.  
  2550.  
  2551. NOTES
  2552.        The string returned must be deallocated with iniFreeNameStr() after
  2553.        use.
  2554.  
  2555.  
  2556. BUGS
  2557.  
  2558.  
  2559. SEE ALSO
  2560.        iniReadLongA(), iniReadFloatA(), iniWriteStr(), iniGetStrA(),
  2561.        iniPutStrA(), <libraries/ini_lib.h>
  2562.  
  2563.  
  2564. ini.library/iniReadStrA
  2565.  
  2566. NAME
  2567.        iniReadStrA -- Extracts strings out of an array
  2568.  
  2569.  
  2570. SYNOPSIS
  2571.        success = iniReadStrA( iniFile, ContextName, ItemName, Array,
  2572.        D0                     A0       A1           A2        A3
  2573.                               Entries, Flags );
  2574.                               D0       D1
  2575.  
  2576.        BOOL iniReadStrA( struct iniFile *, APTR, APTR, APTR, ULONG, ULONG );
  2577.  
  2578.  
  2579. FUNCTION
  2580.        Searches for the given context item in the given context and reads
  2581.        the string(s) into the specified array.
  2582.  
  2583.  
  2584. INPUTS
  2585.        iniFile - INI file to be evaluated
  2586.        ContextName - Name of the context where context item is
  2587.        ItemName - Name of the context item to be searched
  2588.        Array - Array where to put the pointers to the strings
  2589.        Flags - Search flags. They're currently defined as:
  2590.            INIF_ContextCase - Set this flag if the search of the context
  2591.                name should be case sensitive.
  2592.            INIF_ContextItemCase - Set this flag if the search of the context
  2593.                item name should be case sensitive.
  2594.  
  2595.  
  2596. RESULT
  2597.        success - TRUE if accessing was successful else NULL.
  2598.  
  2599.  
  2600. EXAMPLE
  2601.  
  2602.  
  2603. NOTES
  2604.        Array fields which can't be evaluated (e.g. bad syntax) are left
  2605.        unchanged. So it's good to fill the array with default strings first.
  2606.        All array fields must be deallocated with iniFreeNameStr() when they
  2607.        are not required anymore. This means that the default entries of the
  2608.        array must be iniAllocNameStr() strings!
  2609.  
  2610. BUGS
  2611.  
  2612.  
  2613. SEE ALSO
  2614.        iniReadLongA(), iniReadFloatA(), iniReadStr(), iniWriteStrA(),
  2615.        iniGetStrA(), iniPutStrA(), <libraries/ini_lib.h>
  2616.  
  2617.  
  2618. ini.library/iniReadWordA
  2619.  
  2620. NAME
  2621.        iniReadWordA -- reads a context item array into a (U)WORD array.
  2622.  
  2623.  
  2624. SYNOPSIS
  2625.        success = iniReadWordA( iniFile, ContextName, ItemName, Array,
  2626.        D0                      A0       A1           A2        A3
  2627.                                Entries, Flags );
  2628.                                D0       D1
  2629.  
  2630.        BOOL iniReadWordA( struct iniFile *, APTR, APTR, struct Array *,
  2631.            ULONG, ULONG );
  2632.  
  2633.  
  2634. FUNCTION
  2635.        Searches a context item in a context you specified by name and stores
  2636.        the read bytes into a (U)WORD table you specified.
  2637.  
  2638.  
  2639. INPUTS
  2640.        iniFile - INI file to be evaluated
  2641.        ContextName - Name of the context where context item is
  2642.        ItemName - Name of the context item to be searched
  2643.        Array - An (U)WORD array where to store the values
  2644.        Entries - Number of entries to read (further entries will be ignored)
  2645.        Flags - Search flags. They're currently defined as:
  2646.            INIF_ContextCase - Set this flag if the search of the context
  2647.                name should be case sensitive.
  2648.            INIF_ContextItemCase - Set this flag if the search of the context
  2649.                item name should be case sensitive.
  2650.  
  2651.  
  2652. RESULT
  2653.        success - TRUE if line could be evaluated else FALSE
  2654.  
  2655.  
  2656. EXAMPLE
  2657.  
  2658.  
  2659. NOTES
  2660.        Make sure that the given array is big enough to hold all values or
  2661.        some memory area may be overwritten.
  2662.  
  2663.        Fields which can't be evaluated are left unchanged.
  2664.  
  2665.  
  2666. BUGS
  2667.  
  2668.  
  2669. SEE ALSO
  2670.        iniReadByteA(), iniReadLongA(), iniGetWordA(), iniWriteWordA(),
  2671.        <libraries/ini_lib.h>
  2672.  
  2673.  
  2674. ini.library/iniRemContext
  2675.  
  2676. NAME
  2677.        iniRemContext -- removes the last context from an INI file structure
  2678.  
  2679.  
  2680. SYNOPSIS
  2681.        iniRemContext( iniFile );
  2682.                       A0
  2683.  
  2684.        void iniRemContext( struct iniFile *);
  2685.  
  2686.  
  2687. FUNCTION
  2688.        Removes a previously generated and added context from a specified
  2689.        INI file structure. The entry removed is the last one.
  2690.  
  2691.  
  2692. INPUTS
  2693.        iniFile - Pointer to INI structure where to remove from
  2694.  
  2695.  
  2696. EXAMPLE
  2697.  
  2698.  
  2699. NOTES
  2700.        This function *DOESN'T* do any deallocations. It just removes the
  2701.        node from the context list.
  2702.  
  2703.  
  2704. BUGS
  2705.  
  2706.  
  2707. SEE ALSO
  2708.        iniCreateContext(), iniFreeContext(), iniAddContext(),
  2709.        iniInsertContext(), iniDeleteContext(), <libraries/ini_lib.h>
  2710.  
  2711.  
  2712. ini.library/iniRemContextItem
  2713.  
  2714. NAME
  2715.        iniRemContextItem -- removes the last context item line from a
  2716.                             context structure
  2717.  
  2718.  
  2719. SYNOPSIS
  2720.        iniRemContextItem( ContextStr );
  2721.                           A0
  2722.  
  2723.        void iniRemContextItem( struct ContextStr *);
  2724.  
  2725.  
  2726. FUNCTION
  2727.        Removes a previously generated context item line from a context
  2728.        structure. The context item line removed is the last one.
  2729.  
  2730.  
  2731. INPUTS
  2732.        ContextStr - Pointer to context structure where to remove from
  2733.  
  2734.  
  2735. EXAMPLE
  2736.  
  2737.  
  2738. NOTES
  2739.        This function just removes the node, it *DOESN'T* deallocate any
  2740.        memory.
  2741.  
  2742.  
  2743. BUGS
  2744.  
  2745.  
  2746. SEE ALSO
  2747.        iniCreateContextItem(), iniFreeContextItem(), iniRemContextItem(),
  2748.        iniInsertContextItem(), iniDeleteContextItem(), <libraries/ini_lib.h>
  2749.  
  2750.  
  2751. ini.library/iniSaveFile
  2752.  
  2753. NAME
  2754.        iniSaveFile -- Saves an .INI file from an INI structure to disk
  2755.  
  2756.  
  2757. SYNOPSIS
  2758.        written = iniSaveFile( iniFile, name, accessMode );
  2759.        D0                     A0       D1    D2
  2760.  
  2761.        ULONG iniSaveFile( struct iniFile *, APTR, LONG );
  2762.  
  2763.  
  2764. FUNCTION
  2765.        Saves an INI file to disk using the current INI structure. This
  2766.        function usually is called when the user selects 'Save' in an
  2767.        application.
  2768.  
  2769.  
  2770. INPUTS
  2771.        iniFile - INI structure to be saved
  2772.        name - Name of the INI file to be created.
  2773.        accessMode - Write mode of file (see <libraries/dos.h> for details)
  2774.  
  2775.  
  2776. RESULT
  2777.        written - Number of bytes written in total or -1 on error.
  2778.  
  2779.  
  2780. EXAMPLE
  2781.  
  2782.  
  2783. NOTES
  2784.  
  2785.  
  2786. BUGS
  2787.  
  2788.  
  2789. SEE ALSO
  2790.        iniOpen(), iniOpenDefault(), iniOpenFromFH(), iniOpenMem(),
  2791.        iniClose(), <libraries/ini_lib.h>, <libraries/dos.h>
  2792.  
  2793.  
  2794. ini.library/iniSaveToFH
  2795.  
  2796. NAME
  2797.        iniSaveToFH -- Saves an INI structure to an already opened file
  2798.  
  2799.  
  2800. SYNOPSIS
  2801.        written = iniSaveToFH( fh, iniFile );
  2802.        D0                     A0  A1
  2803.  
  2804.        ULONG iniSaveToFH( BPTR, struct iniFile *);
  2805.  
  2806.  
  2807. FUNCTION
  2808.        Writes the INI data from the specified INI structure to the file
  2809.        already opened. The file won't be closed after writing, so you can
  2810.        add more data manually.
  2811.  
  2812.  
  2813. INPUTS
  2814.        fh - BPTR to an file handle of the already opened file to be written.
  2815.        iniFile - INI structure to be saved
  2816.  
  2817.  
  2818. RESULT
  2819.        written - Number of bytes written in total or -1 on error.
  2820.  
  2821.  
  2822. EXAMPLE
  2823.  
  2824.  
  2825. NOTES
  2826.  
  2827.  
  2828. BUGS
  2829.  
  2830.  
  2831. SEE ALSO
  2832.        iniOpenDefault(), iniOpenFile(), iniOpenFromFH(), iniOpenMem(),
  2833.        iniClose(), iniSaveFile(), <libraries/ini_lib.h>
  2834.  
  2835.  
  2836. ini.library/iniSetNameStr
  2837.  
  2838. NAME
  2839.        iniSetNameStr -- sets a name string in a given structure offset
  2840.  
  2841.  
  2842. SYNOPSIS
  2843.        namestring = iniSetNameStr( StructPos, namestring );
  2844.        D0                          A0
  2845.  
  2846.        APTR iniSetNameStr( APTR, char namestring *);
  2847.  
  2848.  
  2849. FUNCTION
  2850.        Stores a name string into an structure position. This is required
  2851.        if you use own strings in the library handlers.
  2852.  
  2853.  
  2854. INPUTS
  2855.        StructPos - A memory pointer where the string pointer should be
  2856.            assigned.
  2857.        namestring - The name string to be assigned.
  2858.  
  2859.  
  2860. RESULT
  2861.        namestring - The name string stored or NULL on error. 
  2862.  
  2863.  
  2864. EXAMPLE
  2865.  
  2866.  
  2867. NOTES
  2868.        The namestring is a copy of string, but it's freed via iniFreePMem()
  2869.  
  2870.  
  2871. BUGS
  2872.  
  2873.  
  2874. SEE ALSO
  2875.       iniAllocNameStr(), iniFreeNameStr(), iniSetString()
  2876.  
  2877.  
  2878. ini.library/iniSetString
  2879.  
  2880. NAME
  2881.        iniSetString -- allocates and sets a name string in a given structure
  2882.            offset
  2883.  
  2884.  
  2885. SYNOPSIS
  2886.        namestring = iniSetString( StructPos, string );
  2887.        D0                          A0
  2888.  
  2889.        APTR iniSetNameStr( APTR, char string *);
  2890.  
  2891.  
  2892. FUNCTION
  2893.        Allocates a name string out of a standard NULL-terminated C-String
  2894.        and assigns the allocated pointer to the structure position.
  2895.        This is required if you use own strings in the library handlers.
  2896.  
  2897.  
  2898. INPUTS
  2899.        StructPos - A memory pointer where the string pointer should be
  2900.            assigned.
  2901.        string - The C-String to be assigned.
  2902.  
  2903.  
  2904. RESULT
  2905.        namestring - The name string stored or NULL on error. 
  2906.  
  2907.  
  2908. EXAMPLE
  2909.  
  2910.  
  2911. NOTES
  2912.        The namestring is a copy of string, but it's freed via iniFreePMem()
  2913.  
  2914.  
  2915. BUGS
  2916.  
  2917.  
  2918. SEE ALSO
  2919.       iniAllocNameStr(), iniFreeNameStr(), iniSetNameStr()
  2920.  
  2921.  
  2922. ini.library/iniStrToFloat
  2923.  
  2924. NAME
  2925.        iniStrToFloat -- Converts a string to a quick float value.
  2926.  
  2927.  
  2928. SYNOPSIS
  2929.        QFloat = iniStrToFloat( String, Default );
  2930.        D0                      A0      D0
  2931.  
  2932.        ULONG iniStrToFloat( APTR, ULONG );
  2933.  
  2934.  
  2935. FUNCTION
  2936.        This function is used to convert a standard ASCII string to a
  2937.        quick float value. The string may have signs (+/-) and a decimal
  2938.        point. A quick float value has in it's upper 16-bits the decimal
  2939.        value and in the lower 16-bits the fraction. That means, the highest
  2940.        possible accuracy is 1/65536. If the string can't be converted for
  2941.        any reason, the default value is used.
  2942.  
  2943.  
  2944. INPUTS
  2945.        String - The string containing the quick float value.
  2946.        Default - Default quick float value to use if error.
  2947.  
  2948.  
  2949. RESULT
  2950.        QFloat - The converted quick float value or the default value.
  2951.  
  2952.  
  2953. EXAMPLE
  2954.        Calling the function with a string containing 3.14159 will result in
  2955.        QFloat with 3.1416.
  2956.  
  2957.  
  2958. NOTES
  2959.        The string's value may not exceed -65536/+65535 or an overflow error
  2960.        will occur. The value after the period will only be interpreted up
  2961.        to 4 digits. However, the 5th digit will be interpreted for rounding
  2962.        purposes.
  2963.  
  2964.  
  2965. BUGS
  2966.  
  2967.  
  2968. SEE ALSO
  2969.       iniStrToInt(), iniIntToStr(), iniFloatToStr(), <libraries/ini_lib.h>
  2970.  
  2971.  
  2972. ini.library/iniStrToInt
  2973.  
  2974. NAME
  2975.        iniStrToInt -- Converts a string to an (un)signed 32-bit integer.
  2976.  
  2977.  
  2978. SYNOPSIS
  2979.        Integer = iniStrToInt( String, Default );
  2980.        D0                     A0      D0
  2981.  
  2982.        ULONG iniStrToInt( APTR, ULONG );
  2983.  
  2984.  
  2985. FUNCTION
  2986.        This function is used to convert a standard ASCII string to a
  2987.        standard 32-bit (un)signed integer value. The string may have signs
  2988.        (+/-) and can be in hexadecimal, decimal, binary and octal formats.
  2989.        Hexadecimal strings are preceded with $ or 0x. Binary strings with
  2990.        %, octal strings with & and decimal strings start either with nothing
  2991.        or with a #. In addition to this, the following strings will return
  2992.        -1: Yes, Y, True, On
  2993.         0: No, N, False, Off
  2994.  
  2995.        The match isn't case sensitive, so e.g. YES will also return -1.
  2996.        This makes evaluations easier of context items like:
  2997.        EnableFunction = Yes.
  2998.  
  2999.        This means that iniReadLong, etc. automatically take care of this.
  3000.  
  3001. INPUTS
  3002.        String - The string containing the integer value.
  3003.        Default - Default integer value to use if error.
  3004.  
  3005.  
  3006. RESULT
  3007.        Integer - The converted integer value or the default value.
  3008.  
  3009.  
  3010. EXAMPLE
  3011.        A string containing: $0037 will return 55 in Integer,
  3012.        %001110 will return 14, and &17 will result in 15.
  3013.  
  3014.  
  3015. NOTES
  3016.        However, the string's value may not exceed -4,294,967,296 and
  3017.        +4,294,967,295 (32 bit limit) or an overflow error will occur.
  3018.        This function is used for all string to integer conversions.
  3019.  
  3020.  
  3021. BUGS
  3022.  
  3023.  
  3024. SEE ALSO
  3025.       iniStrToFloat(), iniIntToStr(), iniFloatToStr(), <libraries/ini_lib.h>
  3026.  
  3027.  
  3028. ini.library/iniWriteByteA
  3029.  
  3030. NAME
  3031.        iniWriteByteA -- writes an (U)BYTE array into an context item array.
  3032.  
  3033.  
  3034. SYNOPSIS
  3035.        success = iniWriteByteA( iniFile, ContextName, ItemName, Array,
  3036.        D0                       A0       A1           A2        A3
  3037.                                 Entries, Flags, Format, Len, ZeroSep );
  3038.                                 D0       D1     D2      D3   D4:8
  3039.  
  3040.        BOOL iniWriteByteA( struct iniFile *, APTR, APTR, struct Array *,
  3041.            ULONG, ULONG, ULONG, ULONG, UBYTE );
  3042.  
  3043.  
  3044. FUNCTION
  3045.        Writes the values of the given (U)BYTE table to the specified context
  3046.        item in the given context.
  3047.  
  3048.  
  3049. INPUTS
  3050.        iniFile - INI structure of the INI file which should be affected
  3051.        ContextName - The context name (C-String) in which context to store
  3052.        ItemName - The context item name (C-String) in which the context item
  3053.            lies to write to.
  3054.        Array - An (U)BYTE array where to take the values from
  3055.        Entries - Number of entries to write
  3056.        Flags - Search flags. They're currently defined as:
  3057.            INIF_ContextCase - Set this flag if the search of the context
  3058.                name should be case sensitive.
  3059.            INIF_ContextItemCase - Set this flag if the search of the context
  3060.                item name should be case sensitive.
  3061.        Format - Format of array entries to write out:
  3062.            INI_FORMAT_DEC - Use decimal with no precedor
  3063.            INI_FORMAT_DEC_CHAR - Use decimal with # precedor
  3064.            INI_FORMAT_HEX - Use hexadecimal with $ precedor
  3065.            INI_FORMAT_HEX_0X - Use hexadecimal with 0x precedor
  3066.            INI_FORMAT_BIN - Use binary with % precedor
  3067.            INI_FORMAT_OCT - Use octal with & precedor
  3068.            INI_FORMAT_YESNO - Use No for zero, Yes for all others
  3069.            INI_FORMAT_YN - Use N for zero, Y for all others
  3070.            INI_FORMAT_TRUEFALSE - Use False for zero, True for all others
  3071.            INI_FORMAT_ONOFF - Use Off for zero, On for all others
  3072.            INI_UNSIGNED - Add this to indicate unsigned integer
  3073.        Len - Forced length of outputted string or NULL for no force.
  3074.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  3075.  
  3076.  
  3077. RESULT
  3078.        success - TRUE if line could be written else FALSE
  3079.  
  3080.  
  3081. EXAMPLE
  3082.  
  3083.  
  3084. NOTES
  3085.        This function is currently relatively slow. Especially with
  3086.        arrays with more than 16 entries.
  3087.  
  3088.  
  3089. BUGS
  3090.  
  3091.  
  3092. SEE ALSO
  3093.        iniWriteWordA(), iniWriteLongA(), iniPutByteA(), iniReadByteA(),
  3094.        <libraries/ini_lib.h>
  3095.  
  3096.  
  3097. ini.library/iniWriteFloat
  3098.  
  3099. NAME
  3100.        iniWriteFloat -- Writes a quick floating point value into given
  3101.            item line
  3102.  
  3103.  
  3104. SYNOPSIS
  3105.        success = iniWriteFloat( iniFile, ContextName, ItemName, Value,
  3106.        D0                       A0       A1           A2        D0
  3107.                                 Flags, FltFormat, IntLen, FracLen, ZeroSep );
  3108.                                 D1     D2         D3      D4       D5:8
  3109.  
  3110.        BOOL iniWriteFloat( struct iniFile *, APTR, APTR, ULONG, ULONG,
  3111.            ULONG, ULONG, UBYTE );
  3112.  
  3113.  
  3114. FUNCTION
  3115.        Writes a quick float value into the given context item, belonging
  3116.        to the specified context.
  3117.  
  3118.  
  3119. INPUTS
  3120.        iniFile - INI structure of the INI file to be accessed
  3121.        ContextName - Name of the context where context item lies
  3122.        ItemName - Name of the context item where context item line lies
  3123.        Value - Quick float value to be written
  3124.        Flags - Search flags. They're currently defined as:
  3125.            INIF_ContextCase - Set this flag if the search of the context
  3126.                name should be case sensitive.
  3127.            INIF_ContextItemCase - Set this flag if the search of the context
  3128.                item name should be case sensitive.
  3129.        FltFormat - Format of the floating point value. Can be any of:
  3130.            INI_FLOAT_FORMAT_DEC - Use decimal with point separator
  3131.            INI_FLOAT_UNSIGNED - Add this to indicate unsigned quick float
  3132.        IntLen - Forced length of integer part or NULL for no force.
  3133.        FracLen - Forced length of fractional part or NULL for no force.
  3134.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  3135.  
  3136.  
  3137. RESULT
  3138.        success - TRUE if successful write else FALSE
  3139.  
  3140.  
  3141. EXAMPLE
  3142.  
  3143.  
  3144. NOTES
  3145.        This function calls from iniPutFloat().
  3146.  
  3147.  
  3148. BUGS
  3149.  
  3150.  
  3151. SEE ALSO
  3152.        iniWriteLong(), iniWriteStr(), iniWriteFloatA(), iniReadFloat(),
  3153.        iniPutFloat(), iniGetFloat(), <libraries/ini_lib.h>
  3154.  
  3155.  
  3156. ini.library/iniWriteFloatA
  3157.  
  3158. NAME
  3159.        iniWriteFloatA -- Writes quick floating point value(s) into
  3160.            item line(s)
  3161.  
  3162.  
  3163. SYNOPSIS
  3164.        success = iniWriteFloatA( iniFile, ContextName, ItemName, Array,
  3165.        D0                        A0       A1           A2        A3
  3166.                                  Entries, Flags, FltFormat, IntLen, FracLen,
  3167.                                  D0       D1     D2         D3      D4:8
  3168.                                  ZeroSep );
  3169.                                  D5
  3170.  
  3171.        BOOL iniWriteFloatA( struct iniFile *, APTR, APTR, struct Array *,
  3172.            ULONG, ULONG, ULONG, ULONG, ULONG, UBYTE );
  3173.  
  3174.  
  3175. FUNCTION
  3176.        Writes one or more quick float value(s) from an array into the given
  3177.        context item, belonging to the specified context.
  3178.  
  3179.  
  3180. INPUTS
  3181.        iniFile - INI structure where to assign write to
  3182.        ContextName - The name of the context to be affected
  3183.        ItemName - The name of the context item where to write array to
  3184.        Array - The array where to write the quick float values to
  3185.        Entries - Number of array entries. If the array in the INI file is
  3186.             bigger, the remaining entries will be ignored.
  3187.        Flags - Search flags. They're currently defined as:
  3188.            INIF_ContextCase - Set this flag if the search of the context
  3189.                name should be case sensitive.
  3190.            INIF_ContextItemCase - Set this flag if the search of the context
  3191.                item name should be case sensitive.
  3192.        FltFormat - Format of the floating point value. Can be any of:
  3193.            INI_FLOAT_FORMAT_DEC - Use decimal with point separator
  3194.            INI_FLOAT_UNSIGNED - Add this to indicate unsigned quick float
  3195.        IntLen - Forced length of integer part or NULL for no force.
  3196.        FracLen - Forced length of fractional part or NULL for no force.
  3197.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  3198.  
  3199.  
  3200. RESULT
  3201.        success - TRUE if accessing was successful else NULL.
  3202.  
  3203.  
  3204. EXAMPLE
  3205.  
  3206.  
  3207. NOTES
  3208.        This function calls iniPutFloatA().
  3209.        This function is currently relatively slow. Especially with
  3210.        arrays with more than 16 entries.
  3211.  
  3212.  
  3213. BUGS
  3214.  
  3215.  
  3216. SEE ALSO
  3217.        iniWriteLongA(), iniWriteStrA(), iniWriteFloat(), iniReadFloatA(),
  3218.        iniPutFloatA(), iniGetFloatA(), <libraries/ini_lib.h>
  3219.  
  3220.  
  3221. ini.library/iniWriteLong
  3222.  
  3223. NAME
  3224.        iniWriteLong -- Writes a long integer value into the context item line
  3225.  
  3226.  
  3227. SYNOPSIS
  3228.        success = iniWriteLong( iniFile, ContextName, ItemName, Value,
  3229.        D0                      A0       A1           A2        D0
  3230.                                Flags, Format, Len, ZeroSep );
  3231.                                D1     D2      D3   D4:8
  3232.  
  3233.        BOOL iniWriteLong( struct iniFile *, APTR, APTR, ULONG, ULONG, ULONG,
  3234.            UBYTE );
  3235.  
  3236.  
  3237. FUNCTION
  3238.        Writes a long integer value into the specified context item line,
  3239.        belonging to the given context.
  3240.  
  3241.  
  3242. INPUTS
  3243.        iniFile - INI structure of the INI file which should be affected
  3244.        ContextName - Name of the context where the value should be stored
  3245.        ItemName - Name of the context item where to store value to
  3246.        Value - Value to be written
  3247.        Flags - Search flags. They're currently defined as:
  3248.            INIF_ContextCase - Set this flag if the search of the context
  3249.                name should be case sensitive.
  3250.            INIF_ContextItemCase - Set this flag if the search of the context
  3251.                item name should be case sensitive.
  3252.        Format - Format of the outputted string. Can be any of:
  3253.            INI_FORMAT_DEC - Use decimal with no precedor
  3254.            INI_FORMAT_DEC_CHAR - Use decimal with # precedor
  3255.            INI_FORMAT_HEX - Use hexadecimal with $ precedor
  3256.            INI_FORMAT_HEX_0X - Use hexadecimal with 0x precedor
  3257.            INI_FORMAT_BIN - Use binary with % precedor
  3258.            INI_FORMAT_OCT - Use octal with & precedor
  3259.            INI_FORMAT_YESNO - Use No for zero, Yes for all others
  3260.            INI_FORMAT_YN - Use N for zero, Y for all others
  3261.            INI_FORMAT_TRUEFALSE - Use False for zero, True for all others
  3262.            INI_FORMAT_ONOFF - Use Off for zero, On for all others
  3263.            INI_UNSIGNED - Add this to indicate unsigned integer
  3264.        Len - Forced length of outputted string or NULL for no force.
  3265.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  3266.  
  3267.  
  3268. RESULT
  3269.        success - TRUE if value could successfully be written or FALSE
  3270.  
  3271.  
  3272. EXAMPLE
  3273.  
  3274.  
  3275. NOTES
  3276.        This function calls iniPutLong().
  3277.  
  3278.  
  3279. BUGS
  3280.  
  3281.  
  3282. SEE ALSO
  3283.        iniWriteFloat(), iniWriteStr(), iniWriteLongA(), iniReadLong(),
  3284.        iniPutLong(), iniGetLong(), <libraries/ini_lib.h>
  3285.  
  3286.  
  3287. ini.library/iniWriteLongA
  3288.  
  3289. NAME
  3290.        iniWriteLongA -- writes an (U)LONG array into an context item array.
  3291.  
  3292.  
  3293. SYNOPSIS
  3294.        success = iniWriteLongA( iniFile, ContextName, ItemName, Array,
  3295.        D0                       A0       A1           A2        A3
  3296.                                 Entries, Flags, Format, Len, ZeroSep );
  3297.                                 D0       D1     D2      D3   D4:8
  3298.  
  3299.        BOOL iniWriteLongA( struct iniFile *, APTR, APTR, struct Array *,
  3300.            ULONG, ULONG, ULONG, ULONG, UBYTE );
  3301.  
  3302.  
  3303. FUNCTION
  3304.        Writes the values of the given (U)LONG table to the specified context
  3305.        item in the given context.
  3306.  
  3307.  
  3308. INPUTS
  3309.        iniFile - INI structure of the INI file which should be affected
  3310.        ContextName - The context name (C-String) in which context to store
  3311.        ItemName - The context item name (C-String) in which the context item
  3312.            lies to write to.
  3313.        Array - An (U)LONG array where to take the values from
  3314.        Entries - Number of entries to write
  3315.        Flags - Search flags. They're currently defined as:
  3316.            INIF_ContextCase - Set this flag if the search of the context
  3317.                name should be case sensitive.
  3318.            INIF_ContextItemCase - Set this flag if the search of the context
  3319.                item name should be case sensitive.
  3320.        Format - Format of array entries to write out:
  3321.            INI_FORMAT_DEC - Use decimal with no precedor
  3322.            INI_FORMAT_DEC_CHAR - Use decimal with # precedor
  3323.            INI_FORMAT_HEX - Use hexadecimal with $ precedor
  3324.            INI_FORMAT_HEX_0X - Use hexadecimal with 0x precedor
  3325.            INI_FORMAT_BIN - Use binary with % precedor
  3326.            INI_FORMAT_OCT - Use octal with & precedor
  3327.            INI_FORMAT_YESNO - Use No for zero, Yes for all others
  3328.            INI_FORMAT_YN - Use N for zero, Y for all others
  3329.            INI_FORMAT_TRUEFALSE - Use False for zero, True for all others
  3330.            INI_FORMAT_ONOFF - Use Off for zero, On for all others
  3331.            INI_UNSIGNED - Add this to indicate unsigned integer
  3332.        Len - Forced length of outputted string or NULL for no force.
  3333.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  3334.  
  3335.  
  3336. RESULT
  3337.        success - TRUE if line could be written else FALSE
  3338.  
  3339.  
  3340. EXAMPLE
  3341.  
  3342.  
  3343. NOTES
  3344.        This function is currently relatively slow. Especially with
  3345.        arrays with more than 16 entries.
  3346.  
  3347.  
  3348. BUGS
  3349.  
  3350.  
  3351. SEE ALSO
  3352.        iniWriteByteA(), iniWriteWordA(), iniPutLongA(), iniReadLongA(),
  3353.        <libraries/ini_lib.h>
  3354.  
  3355.  
  3356. ini.library/iniWriteStr
  3357.  
  3358. NAME
  3359.        iniWriteStr -- Writes a string into a context item line
  3360.  
  3361.  
  3362. SYNOPSIS
  3363.        success = iniWriteStr( iniFile, ContextName, ItemName, String,
  3364.        D0                     A0       A1           A2        A3
  3365.                               Flags );
  3366.                               D0
  3367.                               
  3368.  
  3369.        BOOL iniWriteStr( struct iniFile *, APTR, APTR, APTR, ULONG );
  3370.  
  3371.  
  3372. FUNCTION
  3373.        Writes a string into the given context item belonging to the
  3374.        specified context.
  3375.  
  3376.  
  3377. INPUTS
  3378.        iniFile - INI structure of the INI file to be written
  3379.        ContextName - Name of the context where the item lies
  3380.        ItemName - Name of the context item where string should be put
  3381.        String - String to be written
  3382.        Flags - Search flags. They're currently defined as:
  3383.            INIF_ContextCase - Set this flag if the search of the context
  3384.                name should be case sensitive.
  3385.            INIF_ContextItemCase - Set this flag if the search of the context
  3386.                item name should be case sensitive.
  3387.  
  3388.  
  3389. RESULT
  3390.        success - TRUE if writing was successful else FALSE
  3391.  
  3392.  
  3393. EXAMPLE
  3394.  
  3395.  
  3396. NOTES
  3397.        This function is called from iniReadStr().
  3398.  
  3399.  
  3400. BUGS
  3401.  
  3402.  
  3403. SEE ALSO
  3404.        iniWriteLongA(), iniWriteFloatA(), iniWriteStr(), iniReadStr(),
  3405.        iniPutStrA(), iniGetStrA(), <libraries/ini_lib.h>
  3406.  
  3407.  
  3408. ini.library/iniWriteStrA
  3409.  
  3410. NAME
  3411.        iniWriteStrA -- Writes an array of string(s) into the context item
  3412.            line(s)
  3413.  
  3414.  
  3415. SYNOPSIS
  3416.        success = iniWriteStrA( iniFile, ContextName, ItemName, Array,
  3417.        D0                      A0       A1           A2        A3
  3418.                                Entries, Flags );
  3419.                                D0       D1
  3420.  
  3421.        BOOL iniWriteStrA( struct iniFile *, APTR, APTR, struct Array *,
  3422.            ULONG, ULONG );
  3423.  
  3424.  
  3425. FUNCTION
  3426.        Writes one or more strings into the given context item line,
  3427.        belonging to the specified context from an given array.
  3428.  
  3429.  
  3430. INPUTS
  3431.        iniFile - INI file structure 
  3432.        ContextName - Name of the context where context item lies
  3433.        ItemName - Name of the context item to be accessed
  3434.        Array - The array where to take the pointers of the strings from
  3435.        Entries - Number of array entries. If the array in the INI file is
  3436.             bigger, the remaining entries will be ignored.
  3437.        Flags - Search flags. They're currently defined as:
  3438.            INIF_ContextCase - Set this flag if the search of the context
  3439.                name should be case sensitive.
  3440.            INIF_ContextItemCase - Set this flag if the search of the context
  3441.                item name should be case sensitive.
  3442.  
  3443.  
  3444. RESULT
  3445.        success - TRUE if accessing was successful else NULL.
  3446.  
  3447.  
  3448. EXAMPLE
  3449.  
  3450.  
  3451. NOTES
  3452.        This function calls iniPutStrA().
  3453.  
  3454.  
  3455. BUGS
  3456.  
  3457.  
  3458. SEE ALSO
  3459.        iniWriteLongA(), iniWriteFloatA(), iniWriteStr(), iniReadStrA(),
  3460.        iniPutStrA(), iniGetStrA(), <libraries/ini_lib.h>
  3461.  
  3462.  
  3463. ini.library/iniWriteWordA
  3464.  
  3465. NAME
  3466.        iniWriteWordA -- writes an (U)WORD array into an context item array.
  3467.  
  3468.  
  3469. SYNOPSIS
  3470.        success = iniWriteWordA( iniFile, ContextName, ItemName, Array,
  3471.        D0                       A0       A1           A2        A3
  3472.                                 Entries, Flags, Format, Len, ZeroSep );
  3473.                                 D0       D1     D2      D3   D4:8
  3474.  
  3475.        BOOL iniWriteWordA( struct iniFile *, APTR, APTR, struct Array *,
  3476.            ULONG, ULONG, ULONG, ULONG, UBYTE );
  3477.  
  3478.  
  3479. FUNCTION
  3480.        Writes the values of the given (U)WORD table to the specified context
  3481.        item in the given context.
  3482.  
  3483.  
  3484. INPUTS
  3485.        iniFile - INI structure of the INI file which should be affected
  3486.        ContextName - The context name (C-String) in which context to store
  3487.        ItemName - The context item name (C-String) in which the context item
  3488.            lies to write to.
  3489.        Array - An (U)WORD array where to take the values from
  3490.        Entries - Number of entries to write
  3491.        Flags - Search flags. They're currently defined as:
  3492.            INIF_ContextCase - Set this flag if the search of the context
  3493.                name should be case sensitive.
  3494.            INIF_ContextItemCase - Set this flag if the search of the context
  3495.                item name should be case sensitive.
  3496.        Format - Format of array entries to write out:
  3497.            INI_FORMAT_DEC - Use decimal with no precedor
  3498.            INI_FORMAT_DEC_CHAR - Use decimal with # precedor
  3499.            INI_FORMAT_HEX - Use hexadecimal with $ precedor
  3500.            INI_FORMAT_HEX_0X - Use hexadecimal with 0x precedor
  3501.            INI_FORMAT_BIN - Use binary with % precedor
  3502.            INI_FORMAT_OCT - Use octal with & precedor
  3503.            INI_FORMAT_YESNO - Use No for zero, Yes for all others
  3504.            INI_FORMAT_YN - Use N for zero, Y for all others
  3505.            INI_FORMAT_TRUEFALSE - Use False for zero, True for all others
  3506.            INI_FORMAT_ONOFF - Use Off for zero, On for all others
  3507.            INI_UNSIGNED - Add this to indicate unsigned integer
  3508.        Len - Forced length of outputted string or NULL for no force.
  3509.        ZeroSep - Zero character for IntLen leading zeroes. Usually " " or "0"
  3510.  
  3511.  
  3512. RESULT
  3513.        success - TRUE if line could be written else FALSE
  3514.  
  3515.  
  3516. EXAMPLE
  3517.  
  3518.  
  3519. NOTES
  3520.        This function is currently relatively slow. Especially with
  3521.        arrays with more than 16 entries.
  3522.  
  3523.  
  3524. BUGS
  3525.  
  3526.  
  3527. SEE ALSO
  3528.        iniWriteByteA(), iniWriteLongA(), iniPutWordA(), iniReadWordA(),
  3529.        <libraries/ini_lib.h>
  3530.  
  3531.  
  3532.